diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-08-14 22:02:29 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-08-30 15:26:54 +0200 |
commit | 355336119136f620c27f1adcc26074eb9528c159 (patch) | |
tree | 6d64faab94a767d361fa2c0f87f0f26b2e75fc25 /numpy/core/arrayprint.pyi | |
parent | d0b676b77bfa567eddb925bc31ead24ff0b576b1 (diff) | |
download | numpy-355336119136f620c27f1adcc26074eb9528c159.tar.gz |
MAINT: Drop .pyi code-paths specific to Python 3.7
Diffstat (limited to 'numpy/core/arrayprint.pyi')
-rw-r--r-- | numpy/core/arrayprint.pyi | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/numpy/core/arrayprint.pyi b/numpy/core/arrayprint.pyi index ac2b6f5a8..df22efed6 100644 --- a/numpy/core/arrayprint.pyi +++ b/numpy/core/arrayprint.pyi @@ -1,6 +1,5 @@ -import sys from types import TracebackType -from typing import Any, Optional, Callable, Union, Type +from typing import Any, Optional, Callable, Union, Type, Literal, TypedDict, SupportsIndex # Using a private class is by no means ideal, but it is simply a consquence # of a `contextlib.context` returning an instance of aformentioned class @@ -23,11 +22,6 @@ from numpy import ( ) from numpy.typing import ArrayLike, _CharLike_co, _FloatLike_co -if sys.version_info > (3, 8): - from typing import Literal, TypedDict, SupportsIndex -else: - from typing_extensions import Literal, TypedDict, SupportsIndex - _FloatMode = Literal["fixed", "unique", "maxprec", "maxprec_equal"] class _FormatDict(TypedDict, total=False): |