8000 ENH: Make `np.number` generic with respect to its precision by BvB93 · Pull Request #17540 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Make np.number generic with respect to its precision #17540

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 12 commits into from
Oct 21, 2020
Merged
Prev Previous commit
Next Next commit
MAINT: Removed a now redundant TODO comment
  • Loading branch information
Bas van Beek committed Oct 17, 2020
commit 9e732c85a259c500088df39e5492b014b56ef5da
3 changes: 0 additions & 3 deletions numpy/typing/_callable.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ def __call__(
) -> unsignedinteger[_NBit_co]: ...

class _UnsignedIntBitOp(Protocol[_NBit_co]): # type: ignore[misc]
# TODO: The likes of `uint64 | np.signedinteger` will fail as there
# is no signed integer type large enough to hold a `uint64`
# See https://github.com/numpy/numpy/issues/2524
@overload
def __call__(self, __other: bool) -> unsignedinteger[_NBit_co]: ...
@overload
Expand Down
0