mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
@@ -32,7 +32,7 @@ from posixpath import (
|
||||
splitext as splitext,
|
||||
supports_unicode_filenames as supports_unicode_filenames,
|
||||
)
|
||||
from typing import AnyStr, Optional, Text, Tuple, overload
|
||||
from typing import AnyStr, Optional, Tuple, overload
|
||||
|
||||
altsep: Optional[str]
|
||||
|
||||
@@ -60,7 +60,7 @@ def islink(s: AnyPath) -> bool: ...
|
||||
|
||||
# Mypy complains that the signatures overlap, but things seem to behave correctly anyway.
|
||||
@overload
|
||||
def join(s: StrPath, *paths: StrPath) -> Text: ...
|
||||
def join(s: StrPath, *paths: StrPath) -> str: ...
|
||||
@overload
|
||||
def join(s: BytesPath, *paths: BytesPath) -> bytes: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user