GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — TYP: Add the missing ``casting`` keyword to ``np.clip`` by charris · Pull Request #24615 · numpy/numpy
TYP: Add the missing
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ from numpy import ( | |
| _PartitionKind, | ||
| _SortKind, | ||
| _SortSide, | ||
| _CastingKind, | ||
| ) | ||
| from numpy._typing import ( | ||
| DTypeLike, | ||
|
|
@@ -392,7 +393,7 @@ def clip( | |
| order: _OrderKACF = ..., | ||
| subok: bool = ..., | ||
| signature: str | tuple[None | str, ...] = ..., | ||
| extobj: list[Any] = ..., | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't believe the removal of
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Beats me :) But if you think it needs to stay, I'll revise that part.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #24617.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions |
||
| casting: _CastingKind = ..., | ||
| ) -> _SCT: ... | ||
| @overload | ||
| def clip( | ||
|
|
@@ -406,7 +407,7 @@ def clip( | |
| order: _OrderKACF = ..., | ||
| subok: bool = ..., | ||
| signature: str | tuple[None | str, ...] = ..., | ||
| extobj: list[Any] = ..., | ||
| casting: _CastingKind = ..., | ||
| ) -> Any: ... | ||
| @overload | ||
| def clip( | ||
|
|
@@ -420,7 +421,7 @@ def clip( | |
| order: _OrderKACF = ..., | ||
| subok: bool = ..., | ||
| signature: str | tuple[None | str, ...] = ..., | ||
| extobj: list[Any] = ..., | ||
| casting: _CastingKind = ..., | ||
| ) -> NDArray[_SCT]: ... | ||
| @overload | ||
| def clip( | ||
|
|
@@ -434,7 +435,7 @@ def clip( | |
| order: _OrderKACF = ..., | ||
| subok: bool = ..., | ||
| signature: str | tuple[None | str, ...] = ..., | ||
| extobj: list[Any] = ..., | ||
| casting: _CastingKind = ..., | ||
| ) -> NDArray[Any]: ... | ||
| @overload | ||
| def clip( | ||
|
|
@@ -448,7 +449,7 @@ def clip( | |
| order: _OrderKACF = ..., | ||
| subok: bool = ..., | ||
| signature: str | tuple[None | str, ...] = ..., | ||
| extobj: list[Any] = ..., | ||
| casting: _CastingKind = ..., | ||
| ) -> Any: ... | ||
| @overload | ||
| def clip( | ||
|
|
@@ -462,7 +463,7 @@ def clip( | |
| order: _OrderKACF = ..., | ||
| subok: bool = ..., | ||
| signature: str | tuple[None | str, ...] = ..., | ||
| extobj: list[Any] = ..., | ||
| casting: _CastingKind = ..., | ||
| ) -> _ArrayType: ... | ||
|
|
||
| @overload | ||
|
|
||