Skip to content

Commit 64ed0bd

Browse files
risicleahupp
authored andcommitted
typing stubs: add Magic.__init__ extension & follow_symlinks args
1 parent 2a01b18 commit 64ed0bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

magic/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Magic:
1111
flags: int = ...
1212
cookie: Any = ...
1313
lock: threading.Lock = ...
14-
def __init__(self, mime: bool = ..., magic_file: Optional[Any] = ..., mime_encoding: bool = ..., keep_going: bool = ..., uncompress: bool = ..., raw: bool = ...) -> None: ...
14+
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: ...
1515
def from_buffer(self, buf: Union[bytes, str]) -> Text: ...
1616
def from_file(self, filename: Union[bytes, str, PathLike]) -> Text: ...
1717
def from_descriptor(self, fd: int, mime: bool = ...) -> Text: ...

0 commit comments

Comments
 (0)