We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19c0728 + 2b04765 commit 451fd48Copy full SHA for 451fd48
numpy/version.pyi
@@ -1,7 +1,24 @@
1
-version: str
2
-__version__: str
3
-full_version: str
+import sys
+from typing import Final, TypeAlias
4
5
-git_revision: str
6
-release: bool
7
-short_version: str
+if sys.version_info >= (3, 11):
+ from typing import LiteralString
+else:
+ LiteralString: TypeAlias = str
8
+
9
+__all__ = (
10
+ '__version__',
11
+ 'full_version',
12
+ 'git_revision',
13
+ 'release',
14
+ 'short_version',
15
+ 'version',
16
+)
17
18
+version: Final[LiteralString]
19
+__version__: Final[LiteralString]
20
+full_version: Final[LiteralString]
21
22
+git_revision: Final[LiteralString]
23
+release: Final[bool]
24
+short_version: Final[LiteralString]
0 commit comments