Skip to content

Commit d921157

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

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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.1.0
16+
rev: 22.10.0
1717
hooks:
1818
- id: black
1919
files: &files '^(glQiwiApi|tests|examples|benchmarks|docs)'

docs/code/polling/with_aiogram_non_blocking.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
from glQiwiApi import QiwiWallet
66
from glQiwiApi.core.event_fetching.dispatcher import QiwiDispatcher
7-
from glQiwiApi.core.event_fetching.executor import HandlerContext, start_non_blocking_qiwi_api_polling
7+
from glQiwiApi.core.event_fetching.executor import (
8+
HandlerContext,
9+
start_non_blocking_qiwi_api_polling,
10+
)
811
from glQiwiApi.qiwi.clients.wallet.types import Transaction
912

1013
qiwi_dp = QiwiDispatcher()

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

tests/unit/test_event_fetching/test_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from glQiwiApi import QiwiWallet
99
from glQiwiApi.core.event_fetching.dispatcher import QiwiDispatcher
1010
from glQiwiApi.core.event_fetching.executor import (
11-
HandlerContext,
1211
ExecutorEvent,
12+
HandlerContext,
1313
start_non_blocking_qiwi_api_polling,
1414
)
1515
from glQiwiApi.qiwi.clients.wallet.types import History, Source, Transaction, TransactionType

0 commit comments

Comments
 (0)