Skip to content

Commit

Permalink
Merge pull request #975 from procrastinate-org/pyright-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim authored Mar 9, 2024
2 parents 6af680f + 17dad90 commit 9785735
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ repos:
- id: pyright
additional_dependencies:
- aiopg==1.4.0
- anyio==4.2.0
- anyio==4.3.0
- asgiref==3.7.2
- attrs==23.2.0
- croniter==2.0.1
- django==4.2.9
- croniter==2.0.2
- django==4.2.11
- django-stubs==4.2.7
- importlib-resources==6.1.1
- psycopg[pool]==3.1.17
- importlib-resources==6.1.3
- psycopg[pool]==3.1.18
- psycopg2-binary==2.9.9
- python-dateutil==2.8.2
- sqlalchemy==2.0.25
- typing-extensions==4.9.0
- python-dateutil==2.9.0.post0
- sqlalchemy==2.0.28
- typing-extensions==4.10.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
hooks:
Expand Down
4 changes: 2 additions & 2 deletions procrastinate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def __init__(self, *args, negative: str | None, **kwargs):
super().__init__(*args, **kwargs)
self.negative = negative

def __call__(self, parser, ns, values, option):
def __call__(self, parser, ns, values, option=None):
if self.negative is None:
setattr(ns, self.dest, not option.startswith("--no-"))
setattr(ns, self.dest, option and not option.startswith("--no-"))
return
setattr(ns, self.dest, option != self.negative)

Expand Down

0 comments on commit 9785735

Please # to comment.