mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-06 20:28:51 +08:00
Use Literal types in ast (#6824)
This commit is contained in:
1 parent
1527f67207
commit
73d5098e0b
1 file changed
+3
-3
+3
-3
@@ -3,10 +3,10 @@ import typing
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import Literal
|
||||
|
||||
PyCF_ONLY_AST: int
|
||||
PyCF_ONLY_AST: Literal[1024]
|
||||
if sys.version_info >= (3, 8):
|
||||
PyCF_TYPE_COMMENTS: int
|
||||
PyCF_ALLOW_TOP_LEVEL_AWAIT: int
|
||||
PyCF_TYPE_COMMENTS: Literal[4096]
|
||||
PyCF_ALLOW_TOP_LEVEL_AWAIT: Literal[8192]
|
||||
|
||||
_identifier = str
|
||||
|
||||
|
||||
Reference in new issue
Block a user