Skip to content

Commit 33320ef

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c6271a6 commit 33320ef

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- id: "check-toml"
1414

1515
- repo: https://github.com/psf/black
16-
rev: 23.3.0
16+
rev: 22.12.0
1717
hooks:
1818
- id: black
1919
files: &files '^(glQiwiApi|tests|examples|benchmarks|docs)'

glQiwiApi/utils/deprecated.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def deprecated(reason: Union[str, Callable[..., _F]], stacklevel: int = 2) -> De
2020
"""
2121

2222
if isinstance(reason, str):
23-
2423
# The @deprecated is used with a 'reason'.
2524
#
2625
# .. code-block:: python
@@ -30,7 +29,6 @@ def deprecated(reason: Union[str, Callable[..., _F]], stacklevel: int = 2) -> De
3029
# pass
3130

3231
def decorator(func: Callable[..., _F]) -> Callable[..., _F]:
33-
3432
if inspect.isclass(func):
3533
msg = 'Call to deprecated class {name} ({reason}).'
3634
else:
@@ -49,7 +47,6 @@ def wrapper(*args: Any, **kwargs: Any) -> _F:
4947
return decorator
5048

5149
if inspect.isclass(reason) or inspect.isfunction(reason):
52-
5350
# The @deprecated is used without any 'reason'.
5451
#
5552
# .. code-block:: python

0 commit comments

Comments
 (0)