unstructured/typings/magic/__init__.pyi
Steve Canny a5c9a3695c
rfctr(file): improve file-type auto-detect (#3409)
**Summary**
In preparation for further work on auto file-type detection, improve
`filetype.py` and related modules:
- improve docstrings
- improve type annotations
- extract domain model to `.model` module
2024-07-17 05:27:31 +00:00

7 lines
211 B
Python

from __future__ import annotations
from os import PathLike
def from_buffer(buffer: bytes | str, mime: bool = ...) -> str: ...
def from_file(filename: bytes | str | PathLike[str], mime: bool = ...) -> str: ...