ramonhagenaars / nptyping

💡 Type hints for Numpy and Pandas
MIT License
576 stars 29 forks source link

2.1 breaks mypy #77

Closed gaborbernat closed 2 years ago

gaborbernat commented 2 years ago
import nptyping

nptyping.NDArray[nptyping.Shape["*"], nptyping.Float]
❯ venv/bin/mypy --version
mypy 0.960 (compiled: yes)

❯ venv/bin/mypy magic.py
magic.py:3: error: Value of type variable "_DType_co" of "ndarray" cannot be "floating[Any]"
Found 1 error in 1 file (checked 1 source file)
ramonhagenaars commented 2 years ago

Thank you for reporting this, that's a nasty one that slipped through! ☹️ I'm working hard on a fix.