Skip to content

Commit b4ddceb

Browse files
pre-commit autoupdate (#115)
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
1 parent 196f50e commit b4ddceb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repos:
3333
- gql[aiohttp]~=3.3.0
3434
- async-lru~=1.0.3
3535
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: v1.1.1
36+
rev: v1.2.0
3737
hooks:
3838
- id: mypy
3939
additional_dependencies:
@@ -45,7 +45,7 @@ repos:
4545
- gql[aiohttp]~=3.3.0
4646
- async-lru~=1.0.3
4747
- repo: https://github.com/asottile/pyupgrade
48-
rev: v3.3.1
48+
rev: v3.3.2
4949
hooks:
5050
- id: pyupgrade
5151
args:

components/rulesjobqueue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class RulesJobQueue(JobQueue):
77
async def stop(self, wait: bool = True) -> None:
88
"""Declines all join requests and stops the job queue. That way, users will know that
99
they have to apply to join again."""
10-
# We loop instead of `asyncio.gather`-ing to minimize the rist of timeouts & flood limits
10+
# We loop instead of `asyncio.gather`-ing to minimize the risk of timeouts & flood limits
1111
for job in self.jobs():
12-
if job.name.startswith("JOIN_TIMEOUT"):
12+
if job.name and job.name.startswith("JOIN_TIMEOUT"):
1313
await job.run(self.application)
1414
await super().stop(wait)

0 commit comments

Comments
 (0)