mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
stdlib: Use pos-only parameters for many Protocols (#10985)
This commit is contained in:
@@ -45,7 +45,7 @@ class _FileLike(Protocol):
|
||||
def read(self) -> str | bytes: ...
|
||||
def close(self) -> Any: ...
|
||||
def __enter__(self) -> Any: ...
|
||||
def __exit__(self, typ: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> Any: ...
|
||||
def __exit__(self, __typ: type[BaseException] | None, __exc: BaseException | None, __tb: TracebackType | None) -> Any: ...
|
||||
|
||||
# PathLike doesn't work for the pathname argument here
|
||||
def load_source(name: str, pathname: str, file: _FileLike | None = None) -> types.ModuleType: ...
|
||||
|
||||
Reference in New Issue
Block a user