Skip to content

Commit

Permalink
chore: handle 1.11 mypy upgrades (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Jul 23, 2024
1 parent 60969be commit ffd9ef2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.0
hooks:
- id: mypy
additional_dependencies: [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"lint": [
"black>=24.4.2,<25", # Auto-formatter and linter
"mypy>=1.10.1,<2", # Static type analyzer
"mypy>=1.11.0,<2", # Static type analyzer
"types-PyYAML", # Needed due to mypy typeshed
"types-requests", # Needed due to mypy typeshed
"types-setuptools", # Needed due to mypy typeshed
Expand Down
2 changes: 1 addition & 1 deletion src/ape/utils/basemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __getattr__(self, item):
def __getitem__(self, item):
return self._callback(item)

def get(self, item):
def get(self, item): # type: ignore[override]
return self._callback(item)


Expand Down
2 changes: 1 addition & 1 deletion src/ape_run/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def get_command(self, ctx, name):

# NOTE: don't return anything so Click displays proper error

def result_callback(self, result, interactive):
def result_callback(self, result, interactive: bool): # type: ignore[override]
if interactive:
return self._launch_console()

Expand Down

0 comments on commit ffd9ef2

Please sign in to comment.