Skip to content

Commit

Permalink
TYP: Fix mypy failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas van Beek committed Sep 1, 2022
1 parent 4e5dd5b commit 69def5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assertionlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .dataclass import AbstractDataClass
from .functions import load_readme

_README = os.path.join(__path__[0], 'README.rst') # type: ignore
_README = os.path.join(__path__[0], 'README.rst')
__doc__ = load_readme(_README, encoding='utf-8')

del _README, load_readme, os, sys, VersionInfo
Expand Down
2 changes: 1 addition & 1 deletion assertionlib/assertion_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def shape_eq(a: "ndarray[Any, Any]", b: Union["ndarray[Any, Any]", Tuple[int, ..
or a :class:`tuple` representing a valid array shape.
""" # noqa: E501
return a.shape == getattr(b, 'shape', b) # type: ignore
return a.shape == getattr(b, 'shape', b)


@to_positional
Expand Down
2 changes: 1 addition & 1 deletion assertionlib/dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def from_dict(cls: Type[AT], dct: Mapping[str, Any]) -> AT:
Construct a dictionary from this instance with all non-private instance variables.
"""
return cls(**dct) # type: ignore
return cls(**dct)

@classmethod
def inherit_annotations(cls) -> Callable[[FT], FT]:
Expand Down

0 comments on commit 69def5d

Please sign in to comment.