mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Literal: always import from typing_extensions for simplicity (#4219)
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
# Stubs for fcntl
|
||||
from array import array
|
||||
from io import IOBase
|
||||
from typing import IO, Any, Union, overload
|
||||
from typing import Any, Union, overload
|
||||
from _types import FileDescriptorLike
|
||||
import sys
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import Literal
|
||||
else:
|
||||
from typing_extensions import Literal
|
||||
from typing_extensions import Literal
|
||||
|
||||
FASYNC: int
|
||||
FD_CLOEXEC: int
|
||||
|
||||
Reference in New Issue
Block a user