Skip to content

Commit 336c062

Browse files
authored
Remove write modes from importlib.resources.abc.Traversable (#11124)
1 parent 45b1db9 commit 336c062

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/importlib/abc.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ if sys.version_info >= (3, 9):
138138
# which is not the case.
139139
@overload
140140
@abstractmethod
141-
def open(self, __mode: Literal["r", "w"] = "r", *, encoding: str | None = None, errors: str | None = None) -> IO[str]: ...
141+
def open(self, __mode: Literal["r"] = "r", *, encoding: str | None = None, errors: str | None = None) -> IO[str]: ...
142142
@overload
143143
@abstractmethod
144-
def open(self, __mode: Literal["rb", "wb"]) -> IO[bytes]: ...
144+
def open(self, __mode: Literal["rb"]) -> IO[bytes]: ...
145145
@property
146146
@abstractmethod
147147
def name(self) -> str: ...

0 commit comments

Comments
 (0)