mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 02:52:07 +08:00
Use the FileDescriptorOrPath alias consistently in the stdlib (#9513)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import AnyOrLiteralStr, BytesPath, StrOrBytesPath, StrPath
|
||||
from _typeshed import AnyOrLiteralStr, BytesPath, FileDescriptorOrPath, StrOrBytesPath, StrPath
|
||||
from collections.abc import Sequence
|
||||
from genericpath import (
|
||||
commonprefix as commonprefix,
|
||||
@@ -147,6 +147,6 @@ def splitext(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr]: ...
|
||||
@overload
|
||||
def splitext(p: AnyOrLiteralStr) -> tuple[AnyOrLiteralStr, AnyOrLiteralStr]: ...
|
||||
def isabs(s: StrOrBytesPath) -> bool: ...
|
||||
def islink(path: StrOrBytesPath | int) -> bool: ...
|
||||
def ismount(path: StrOrBytesPath | int) -> bool: ...
|
||||
def lexists(path: StrOrBytesPath | int) -> bool: ...
|
||||
def islink(path: FileDescriptorOrPath) -> bool: ...
|
||||
def ismount(path: FileDescriptorOrPath) -> bool: ...
|
||||
def lexists(path: FileDescriptorOrPath) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user