1
0

0.4.27-20-g64ed0bd.typing-stubs-add-magic-init-extension-follow-symlinks-args.patch 1.0 KB

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