mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-01 01:06:19 +08:00
Use Literal in a few more places (#3176)
This commit is contained in:
1 parent
c579f91077
commit
628eee29f7
6 files changed
+54
-17
No files matched your search
@@ -1,10 +1,14 @@
|
||||
# Stubs for xml.etree.ElementTree
|
||||
|
||||
from typing import Any, Callable, Dict, Generator, IO, ItemsView, Iterable, Iterator, KeysView, List, MutableSequence, Optional, overload, Sequence, Text, Tuple, TypeVar, Union
|
||||
from typing_extensions import Literal
|
||||
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
|
||||
|
||||
VERSION: str
|
||||
|
||||
class ParseError(SyntaxError):
|
||||
|
||||
Reference in new issue
Block a user