8000 MAINT: Changed the `NBitBase` variancy in `number` from co- to invariant by BvB93 · Pull Request #18174 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Changed the NBitBase variancy in number from co- to invariant #18174

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 5 commits into from
Jan 19, 2021
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
Next Next commit
MAINT: Adjusted the return-type of number ops to Any
  • Loading branch information
Bas van Beek committed Jan 19, 2021
commit db018a5d52b9773107325a8221a88eea0cbd79aa
2 changes: 1 addition & 1 deletion numpy/typing/_callable.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def __call__(
) -> complexfloating[Union[_NBit1, _NBit2], Union[_NBit1, _NBit2]]: ...

class _NumberOp(Protocol):
def __call__(self, __other: _NumberLike_co) -> number: ...
def __call__(self, __other: _NumberLike_co) -> Any: ...

class _ComparisonOp(Protocol[_T]):
@overload
Expand Down
0