8000 TYP: type hint ``numpy.polynomial`` by jorenham · Pull Request #26897 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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
Next Next commit
TYP: allow more scalar types in the polynomial._polytypes._Interval
… alias
  • Loading branch information
jorenham committed Jul 22, 2024
commit d0ad0e500986a5754aa80d0d5be59337b945cf77
2 changes: 1 addition & 1 deletion numpy/polynomial/_polytypes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ _AnySeriesND: TypeAlias = (
| _NestedSequence[SupportsComplex | SupportsFloat]
)

_SCT_domain = TypeVar("_SCT_domain", np.float64, np.complex128, np.object_)
_SCT_domain = TypeVar("_SCT_domain", bound=np.inexact[Any] | np.object_)
_Interval: TypeAlias = np.ndarray[tuple[Literal[2]], np.dtype[_SCT_domain]]

_T = TypeVar("_T", bound=object)
Expand Down
0