Skip to content

Commit

Permalink
Pinned to newest mypy version and added silencers. (ramonhagenaars#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Ramon <p8u7wAPC5Pg9HYkkCkzA>
  • Loading branch information
ramonhagenaars committed Nov 16, 2022
1 parent 01b60b0 commit 0105998
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## 2.4.1 (2022-11-16)

- Fixed compatibility with `mypy==0.991`.

## 2.4.0 (2022-11-14)

- Added hint for pandas DataFrame.
Expand Down
2 changes: 1 addition & 1 deletion constraints-3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lazy-object-proxy==1.7.1
# via astroid
mccabe==0.7.0
# via pylint
mypy==0.981
mypy==0.991
# via -r ./dependencies\qa-requirements.txt
mypy-extensions==0.4.3
# via
Expand Down
2 changes: 1 addition & 1 deletion constraints-3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lazy-object-proxy==1.8.0
# via astroid
mccabe==0.7.0
# via pylint
mypy==0.990
mypy==0.991
# via -r ./dependencies\qa-requirements.txt
mypy-extensions==0.4.3
# via
Expand Down
2 changes: 1 addition & 1 deletion constraints-3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lazy-object-proxy==1.7.1
# via astroid
mccabe==0.7.0
# via pylint
mypy==0.981
mypy==0.991
# via -r ./dependencies\qa-requirements.txt
mypy-extensions==0.4.3
# via
Expand Down
2 changes: 1 addition & 1 deletion constraints-3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lazy-object-proxy==1.7.1
# via astroid
mccabe==0.7.0
# via pylint
mypy==0.981
mypy==0.991
# via -r ./dependencies\qa-requirements.txt
mypy-extensions==0.4.3
# via
Expand Down
2 changes: 1 addition & 1 deletion constraints-3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lazy-object-proxy==1.7.1
# via astroid
mccabe==0.7.0
# via pylint
mypy==0.981
mypy==0.991
# via -r ./dependencies\qa-requirements.txt
mypy-extensions==0.4.3
# via
Expand Down
4 changes: 2 additions & 2 deletions nptyping/shape.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ SOFTWARE.
try:
from typing import Literal # type: ignore[attr-defined]
except ImportError:
from typing_extensions import Literal # type: ignore[attr-defined,misc]
from typing_extensions import Literal # type: ignore[attr-defined,misc,assignment]

from typing import Any, cast

# For MyPy:
Shape = cast(Literal, Shape) # type: ignore[has-type,misc]
Shape = cast(Literal, Shape) # type: ignore[has-type,misc,valid-type]

# For PyRight:
class Shape: # type: ignore[no-redef]
Expand Down
4 changes: 2 additions & 2 deletions nptyping/structure.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ SOFTWARE.
try:
from typing import Literal # type: ignore[attr-defined]
except ImportError:
from typing_extensions import Literal # type: ignore[attr-defined,misc]
from typing_extensions import Literal # type: ignore[attr-defined,misc,assignment]

from typing import Any, cast

import numpy as np

# For MyPy:
Structure = cast(Literal, Structure) # type: ignore[has-type,misc]
Structure = cast(Literal, Structure) # type: ignore[has-type,misc,valid-type]

# For PyRight:
class Structure(np.dtype[Any]): # type: ignore[no-redef,misc]
Expand Down

0 comments on commit 0105998

Please sign in to comment.