mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-28 23:33:17 +08:00
Literal: always import from typing_extensions for simplicity (#4219)
This commit is contained in:
1 parent
43e93f803f
commit
44a852dff5
22 files changed
+31
-139
No files matched your search
@@ -1,5 +1,3 @@
|
||||
# Stubs for xml.etree.ElementTree
|
||||
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
@@ -21,13 +19,8 @@ from typing import (
|
||||
Union,
|
||||
overload,
|
||||
)
|
||||
import io
|
||||
import sys
|
||||
|
||||
if sys.version_info < (3,) or sys.version_info >= (3, 8):
|
||||
from typing import Literal
|
||||
else:
|
||||
from typing_extensions import Literal
|
||||
from typing_extensions import Literal
|
||||
|
||||
VERSION: str
|
||||
|
||||
|
||||
Reference in new issue
Block a user