| 12345678910111213141516 |
- Subject: Typing stubs: add Magic.__init__ extension & follow_symlinks args
- Origin: upstream, commit 0.4.27-20-g64ed0bd <https://github.com/ahupp/python-magic/commit/0.4.27-20-g64ed0bd>
- Author: Robert Scott <code@humanleg.org.uk>
- Date: Sat Oct 7 16:35:09 2023 +0100
- --- a/magic/__init__.pyi
- +++ b/magic/__init__.pyi
- @@ -11,7 +11,7 @@
- flags: int = ...
- cookie: Any = ...
- lock: threading.Lock = ...
- - def __init__(self, mime: bool = ..., magic_file: Optional[Any] = ..., mime_encoding: bool = ..., keep_going: bool = ..., uncompress: bool = ..., raw: bool = ...) -> None: ...
- + def __init__(self, mime: bool = ..., magic_file: Optional[Any] = ..., mime_encoding: bool = ..., keep_going: bool = ..., uncompress: bool = ..., raw: bool = ..., extension: bool = ..., follow_symlinks: bool = ...) -> None: ...
- def from_buffer(self, buf: Union[bytes, str]) -> Text: ...
- def from_file(self, filename: Union[bytes, str, PathLike]) -> Text: ...
- def from_descriptor(self, fd: int, mime: bool = ...) -> Text: ...
|