mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use Literal types in ast (#6824)
This commit is contained in:
@@ -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