mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 16:57:12 +08:00
Fix incorrect usage of AnyStr (#1215)
* Fix incorrect usage of AnyStr - sqlite3 was using Union[bytes, AnyStr], which doesn't make sense - The urllib functions I changed accept either bytes or str for their "safe" argument - Also added supports for PathLike to pstats - Remove some unused imports of AnyStr * pstats: python 2 accepts unicode
This commit is contained in:
committed by
Matthias Kramm
parent
dad65e4121
commit
1d6e3f492e
@@ -2,7 +2,7 @@
|
||||
|
||||
# Based on http://docs.python.org/3.6/library/subprocess.html
|
||||
import sys
|
||||
from typing import Sequence, Any, AnyStr, Mapping, Callable, Tuple, IO, Optional, Union, List, Type, Text
|
||||
from typing import Sequence, Any, Mapping, Callable, Tuple, IO, Optional, Union, List, Type, Text
|
||||
from types import TracebackType
|
||||
|
||||
_FILE = Union[int, IO[Any]]
|
||||
|
||||
Reference in New Issue
Block a user