mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Remove write modes from importlib.resources.abc.Traversable (#11124)
This commit is contained in:
@@ -138,10 +138,10 @@ if sys.version_info >= (3, 9):
|
||||
# which is not the case.
|
||||
@overload
|
||||
@abstractmethod
|
||||
def open(self, __mode: Literal["r", "w"] = "r", *, encoding: str | None = None, errors: str | None = None) -> IO[str]: ...
|
||||
def open(self, __mode: Literal["r"] = "r", *, encoding: str | None = None, errors: str | None = None) -> IO[str]: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
def open(self, __mode: Literal["rb", "wb"]) -> IO[bytes]: ...
|
||||
def open(self, __mode: Literal["rb"]) -> IO[bytes]: ...
|
||||
@property
|
||||
@abstractmethod
|
||||
def name(self) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user