8000 TYP: Type ``MaskedArray.{imag, real, baseclass, mT}`` by MarcoGorelli · Pull Request #28868 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

TYP: Type MaskedArray.{imag, real, baseclass, mT} #28868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 1, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
import Self from typing, remove redundant mT type
  • Loading branch information
MarcoGorelli committed May 1, 2025
commit 0fbf8fc9bc5e3eff8e5851fdb20bf53c7490e6f9
7 changes: 2 additions & 5 deletions numpy/ma/core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# ruff: noqa: ANN001, ANN002, ANN003, ANN201, ANN202 ANN204, ANN401

from collections.abc import Sequence
from typing import Any, Literal, SupportsIndex, TypeAlias, TypeVar, overload
from typing import Any, Literal, Self, SupportsIndex, TypeAlias, TypeVar, overload

from _typeshed import Incomplete
from typing_extensions import Self, TypeIs, deprecated
from typing_extensions import TypeIs, deprecated

import numpy as np
from numpy import (
Expand Down Expand Up @@ -801,9 +801,6 @@ class MaskedArray(ndarray[_ShapeT_co, _DTypeT_co]):
T: Any
transpose: Any

@property # type: ignore[misc]
def mT(self) -> Self: ...

#
def toflex(self) -> Incomplete: ...
def torecords(self) -> Incomplete: ...
Expand Down
Loading
0