diff options
author | Royston E Tauro <54945757+lucasace@users.noreply.github.com> | 2020-10-08 23:38:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 23:38:22 +0530 |
commit | 688202aeb9db604cd3ace797b76291281bc7f97e (patch) | |
tree | 47c3a3e5c12fab1e4c27545652f3b48c11cff7d2 | |
parent | 45e04d904099f824f860c5426039e2f4099a714c (diff) | |
download | numpy-688202aeb9db604cd3ace797b76291281bc7f97e.tar.gz |
Adjusted typing.Final's python 3.8 compatibility
-rw-r--r-- | numpy/__init__.pyi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 0c023caf0..1fbdb259b 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -36,7 +36,6 @@ from typing import ( Container, Callable, Dict, - Final, Generic, IO, Iterable, @@ -59,9 +58,9 @@ from typing import ( ) if sys.version_info >= (3, 8): - from typing import Literal, Protocol, SupportsIndex + from typing import Literal, Protocol, SupportsIndex,Final else: - from typing_extensions import Literal, Protocol + from typing_extensions import Literal, Protocol, Final class SupportsIndex(Protocol): def __index__(self) -> int: ... |