GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — TYP: ``hstack`` and ``vstack`` shape-typing by jorenham · Pull Request #32238 · numpy/numpy Conversation
|
|
RE: the mypy_primer diff:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
29f5263 to
c42c4f3
Compare
|
Diff from mypy_primer, showing the effect of this PR on type check results on a corpus of open source code: xarray (https://github.com/pydata/xarray) + xarray/tests/test_plot.py:566: error: Incompatible types in assignment (expression has type "ndarray[tuple[int, int], dtype[float64]]", variable has type "ndarray[tuple[int], dtype[float64]]") [assignment] colour (https://github.com/colour-science/colour) - colour/plotting/section.py:247: error: List item 0 has incompatible type "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | str | None"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]" [list-item] - colour/plotting/section.py:247: error: List item 1 has incompatible type "float"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]" [list-item] - colour/plotting/diagrams.py:599: error: List item 0 has incompatible type "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | str | None"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]" [list-item] - colour/plotting/diagrams.py:599: error: List item 1 has incompatible type "float"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]" [list-item] - colour/plotting/diagrams.py:604: error: List item 0 has incompatible type "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | str | None"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]" [list-item] - colour/plotting/diagrams.py:604: error: List item 1 has incompatible type "float"; expected "_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]" [list-item] optuna (https://github.com/optuna/optuna) ./optuna/study/_multi_objective.py:182: error: INTERNAL ERROR -- Please try using mypy master on GitHub: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Should we wait on mypy? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Nah, it might be weeks or even months until the next mypy release, and the internal error only causes mypy_primer to not run on optuna, so it should be fine to ignore. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks Joren. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.