Skip to content

Commit dcc1857

Browse files
committed
reformat with current ruff
1 parent 35fde61 commit dcc1857

6 files changed

Lines changed: 8 additions & 6 deletions

File tree

progress_api/backends/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
package provides several backends, but the API is not limited to the supplied
99
backends.
1010
"""
11+
1112
from __future__ import annotations
1213

1314
from abc import ABC, abstractmethod

progress_api/backends/enlighten.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
multiple bars (well) and multi-state bars, and interacts well with logging
99
and other output to standard output and error streams.
1010
"""
11+
1112
# pyright: basic
1213
from __future__ import annotations
1314

progress_api/backends/mock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77
Mock backend that records progress updates for testing.
88
"""
9+
910
from __future__ import annotations
1011

1112
from typing import Optional

progress_api/backends/null.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77
Null backend that doesn't supply any progress.
88
"""
9+
910
from __future__ import annotations
1011

1112
from typing import Optional

progress_api/backends/tqdm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
.. _tqdm: https://tqdm.github.io/docs/tqdm/
1313
"""
14+
1415
# pyright: basic
1516
from __future__ import annotations
1617

progress_api/config.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,17 @@ def get_backend() -> backends.ProgressBackend:
4444

4545

4646
@overload
47-
def set_backend(impl: backends.ProgressBackend) -> None:
48-
...
47+
def set_backend(impl: backends.ProgressBackend) -> None: ...
4948

5049

5150
@overload
5251
def set_backend(
5352
impl: Callable[BCP, backends.ProgressBackend], *args: BCP.args, **kwargs: BCP.kwargs
54-
) -> None:
55-
...
53+
) -> None: ...
5654

5755

5856
@overload
59-
def set_backend(impl: str, *args: Any, **kwargs: Any) -> None:
60-
...
57+
def set_backend(impl: str, *args: Any, **kwargs: Any) -> None: ...
6158

6259

6360
def set_backend(

0 commit comments

Comments
 (0)