Skip to content

🏷️ fix stubtest errors in numpy.dtype and numpy.dtypes.*#229

Merged
jorenham merged 1 commit intomainfrom
_DTypeMeta
Mar 3, 2025
Merged

🏷️ fix stubtest errors in numpy.dtype and numpy.dtypes.*#229
jorenham merged 1 commit intomainfrom
_DTypeMeta

Conversation

@jorenham
Copy link
Copy Markdown
Member

@jorenham jorenham commented Mar 3, 2025

numpy.dtype.type is None as class attribute, and type[SCT] as instance attribute. This can't be expressed in the typing system, so it's kept as @property, and added to the permanent .mypyignore.

@jorenham jorenham added this to the v2.2.x.0 milestone Mar 3, 2025
@jorenham jorenham added tool: stubtest port: to numpy NumType PR's that should be ported to NumPy numpy.dtype labels Mar 3, 2025
@jorenham jorenham merged commit aeacced into main Mar 3, 2025
4 checks passed
@jorenham jorenham deleted the _DTypeMeta branch March 3, 2025 03:03
jorenham added a commit to jorenham/numpy that referenced this pull request Mar 14, 2025
@jorenham jorenham removed the port: to numpy NumType PR's that should be ported to NumPy label Mar 14, 2025
charris pushed a commit to charris/numpy that referenced this pull request Mar 15, 2025
MaanasArora pushed a commit to MaanasArora/numpy that referenced this pull request Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant