Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthestarsfalll committed Nov 25, 2024
1 parent dcb6e4d commit 623239c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ jobs:
run: poetry install --with dev

- name: Mypy Check
run: |
yes y | poetry run mypy excore --install-types
poetry run mypy excore
run: poetry run mypy excore
2 changes: 1 addition & 1 deletion excore/config/_json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .model import _str_to_target

if sys.version_info >= (3, 10, 0):
from types import NoneType, UnionType
from types import NoneType, UnionType # type: ignore
else:
NoneType = type(None) # type: ignore

Expand Down
4 changes: 2 additions & 2 deletions excore/config/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

if TYPE_CHECKING:
from types import FunctionType, ModuleType
from typing import Any, Literal
from typing import Any, Dict, Literal

from typing_extensions import Self

NodeClassType = Type[Any]
NodeParams = dict[Any, Any]
NodeParams = Dict[Any, Any]
NodeInstance = object

NoCallSkipFlag = Self
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ pytest-cov = "^4.1.0"
torch = { version = "1.13.1", source = "torch" }
torchvision = { version = "0.14.1", source = "torch" }
mypy = "^1.13.0"
types-toml = "^0.10.8.20240310"
types-tqdm = "^4.67.0.20241119"
types-tabulate = "^0.9.0.20240106"

[[tool.poetry.source]]
name = "torch"
Expand Down

0 comments on commit 623239c

Please sign in to comment.