mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 00:43:45 +08:00
typing.pyi: IO.name may be bytes (#10738)
This commit is contained in:
1 parent
aef4fa8756
commit
31495e53bd
1 file changed
+3
-1
+3
-1
@@ -709,8 +709,10 @@ class IO(Iterator[AnyStr], Generic[AnyStr]):
|
||||
# See #8726
|
||||
@property
|
||||
def mode(self) -> str: ...
|
||||
# Usually str, but may be bytes if a bytes path was passed to open(). See #10737.
|
||||
# If PEP 696 becomes available, we may want to use a defaulted TypeVar here.
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
def name(self) -> str | Any: ...
|
||||
@abstractmethod
|
||||
def close(self) -> None: ...
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user