Skip to content

Commit

Permalink
chore: typing conern
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 23, 2024
1 parent f4ddad6 commit 8a4eddf
Show file tree
Hide file tree
Showing 3 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 @@ -22,7 +22,7 @@ repos:
additional_dependencies: [flake8-breakpoint, flake8-print, flake8-pydantic]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.13.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 @@ -22,7 +22,7 @@
],
"lint": [
"black>=24.10.0,<25", # Auto-formatter and linter
"mypy>=1.11.2,<2", # Static type analyzer
"mypy>=1.13.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
4 changes: 2 additions & 2 deletions src/ape_cache/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from ape.logging import logger

if TYPE_CHECKING:
from ape.api.query import QueryAPI
from ape_cache.query import CacheQueryProvider


def get_engine() -> "QueryAPI":
def get_engine() -> "CacheQueryProvider":
basemodel = import_module("ape.utils.basemodel")
return basemodel.ManagerAccessMixin.query_manager.engines["cache"]

Expand Down

0 comments on commit 8a4eddf

Please sign in to comment.