mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Use Literal in a few more places (#3176)
This commit is contained in:
committed by
Jelle Zijlstra
parent
c579f91077
commit
628eee29f7
@@ -1,7 +1,10 @@
|
||||
# Stubs for gettext (Python 3.4)
|
||||
|
||||
import sys
|
||||
from typing import overload, Any, Container, IO, Iterable, Optional, Type, TypeVar
|
||||
from typing_extensions import Literal
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import Literal
|
||||
else:
|
||||
from typing_extensions import Literal
|
||||
|
||||
class NullTranslations:
|
||||
def __init__(self, fp: IO[str] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user