diff options
| author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-08-04 18:35:00 +0200 |
|---|---|---|
| committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-08-04 18:35:00 +0200 |
| commit | 8571fc5d2fa4b7ab1f6730bce5d728328139c09f (patch) | |
| tree | f7b532e3f20dd0fa5b61bc1149d1282d120eeada /numpy | |
| parent | 53943536cfea73ec986334d299a9d3256d96c885 (diff) | |
| download | numpy-8571fc5d2fa4b7ab1f6730bce5d728328139c09f.tar.gz | |
MAINT: Rename `types.Union` to `types.UnionType`
The class got renamed in the 3.10rc1 release
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/numerictypes.pyi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numerictypes.pyi b/numpy/core/numerictypes.pyi index e99e1c500..d5e3ccffb 100644 --- a/numpy/core/numerictypes.pyi +++ b/numpy/core/numerictypes.pyi @@ -86,8 +86,8 @@ class _typedict(Dict[Type[generic], _T]): if sys.version_info >= (3, 10): _TypeTuple = Union[ Type[Any], - types.Union, - Tuple[Union[Type[Any], types.Union, Tuple[Any, ...]], ...], + types.UnionType, + Tuple[Union[Type[Any], types.UnionType, Tuple[Any, ...]], ...], ] else: _TypeTuple = Union[ |
