-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
534f8e6
commit f00c817
Showing
9 changed files
with
63 additions
and
46 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,36 @@ | ||
from typing import Tuple, Union | ||
import numbers | ||
from typing import Iterable, Tuple, Union | ||
|
||
import numpy as np | ||
|
||
######################################################################################## | ||
# API Types | ||
######################################################################################## | ||
|
||
ShapeType = Tuple[int, ...] | ||
|
||
RandomStateType = Union[np.random.RandomState, np.random.Generator] | ||
|
||
######################################################################################## | ||
# Argument Types | ||
######################################################################################## | ||
|
||
IntArgType = Union[int, numbers.Integral, np.integer] | ||
FloatArgType = Union[float, numbers.Real, np.floating] | ||
|
||
ShapeArgType = Union[IntArgType, Iterable[IntArgType]] | ||
DTypeArgType = Union[np.dtype, str] | ||
|
||
ScalarArgType = Union[int, float, complex, numbers.Number, np.float_] | ||
|
||
ArrayLikeGetitemArgType = Union[ | ||
int, | ||
slice, | ||
np.ndarray, | ||
np.newaxis, | ||
None, | ||
type(Ellipsis), | ||
Tuple[Union[int, slice, np.ndarray, np.newaxis, None, type(Ellipsis)], ...], | ||
] | ||
|
||
RandomStateArgType = Union[None, int, np.random.RandomState, np.random.Generator] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.