Skip to content

Commit 6585247

Browse files
authored
[pre-commit.ci] pre-commit autoupdate (#275)
<!--pre-commit.ci start--> updates: - [github.com/asottile/pyupgrade: v3.19.1 → v3.20.0](asottile/pyupgrade@v3.19.1...v3.20.0) - [github.com/pycqa/flake8: 7.2.0 → 7.3.0](PyCQA/flake8@7.2.0...7.3.0) - [github.com/numpy/numpydoc: v1.8.0 → v1.9.0](numpy/numpydoc@v1.8.0...v1.9.0) <!--pre-commit.ci end-->
2 parents ee4a746 + b4eb254 commit 6585247

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ default_language_version:
33

44
repos:
55
- repo: https://github.com/asottile/pyupgrade
6-
rev: v3.19.1
6+
rev: v3.20.0
77
hooks:
88
- id: pyupgrade
99
args: [ '--py39-plus' ]
@@ -25,7 +25,7 @@ repos:
2525
- id: isort
2626
args: [ '--profile=black' ]
2727
- repo: https://github.com/pycqa/flake8
28-
rev: 7.2.0
28+
rev: 7.3.0
2929
hooks:
3030
- id: flake8
3131
args: [ '--config=setup.cfg' ]
@@ -47,7 +47,7 @@ repos:
4747
args: [ '--profile=black' ]
4848
additional_dependencies: [ 'isort==6.0.1' ]
4949
- repo: https://github.com/numpy/numpydoc
50-
rev: v1.8.0
50+
rev: v1.9.0
5151
hooks:
5252
- id: numpydoc-validation
5353
- repo: meta

birdy/client/converters.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646

4747
@property
4848
def file(self):
49-
"""Return output Path object. Download from server if not found."""
49+
"""Return the output Path object. Download from server if not found."""
5050
if self._file is None:
5151
self.output.writeToDisk(path=self.path, verify=self.verify)
5252
self._file = Path(self.output.filePath)
@@ -385,8 +385,20 @@ def convert(
385385
pass
386386

387387

388-
def all_subclasses(cls):
389-
"""Return all subclasses of a class."""
388+
def all_subclasses(cls: object) -> set:
389+
"""
390+
Return all subclasses of a class.
391+
392+
Parameters
393+
----------
394+
cls : object
395+
Class to find subclasses of.
396+
397+
Returns
398+
-------
399+
set
400+
The set of all subclasses of the given class.
401+
"""
390402
return set(cls.__subclasses__()).union(
391403
[s for c in cls.__subclasses__() for s in all_subclasses(c)]
392404
)

0 commit comments

Comments
 (0)