Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent a9a2906 commit 0e2f8ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tqdm_publisher/_progress_subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@


class TQDMProgressSubscriber(TQDMPublisher):
def __init__(self, iterable, *, announcer: "?", request_id: str, message: dict, **tqdm_kwargs):
def __init__(self, iterable, *, announcer: "?", request_id: str, message: dict, **tqdm_kwargs):
super().__init__(iterable, **tqdm_kwargs)

def on_progress_update(format_dict) -> None:
"""
Describe what this announcer is all about...
"""
announcer.announce(dict(request_id=request_id, **message))
"""
Describe what this announcer is all about...
"""
announcer.announce(dict(request_id=request_id, **message))

self.subscribe(callback=on_progress_update)

0 comments on commit 0e2f8ca

Please sign in to comment.