Use Literal in a few more places (#3176)

This commit is contained in:
Sebastian Rittau
2019-08-10 22:08:18 +02:00
committed by Jelle Zijlstra
parent c579f91077
commit 628eee29f7
6 changed files with 54 additions and 17 deletions

View File

@@ -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: ...