mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-11-29 16:49:54 +00:00
**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
7 lines
211 B
Python
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: ...
|