mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-25 09:57:15 +00:00

Reviewers: I recommend reviewing commit-by-commit or just looking at the final version of `partition/docx.py` as View File. This refactor solves a few problems but mostly lays the groundwork to allow us to refine further aspects such as page-break detection, list-item detection, and moving python-docx internals upstream to that library so our work doesn't depend on that domain-knowledge.
17 lines
434 B
Python
17 lines
434 B
Python
from typing import Any, Callable, Generic, TypeVar
|
|
|
|
from docx.oxml.xmlchemy import BaseOxmlElement
|
|
|
|
_T = TypeVar("_T")
|
|
|
|
class lazyproperty(Generic[_T]):
|
|
def __init__(self, fget: Callable[..., _T]) -> None: ...
|
|
def __get__(self, obj: Any, type: Any = None) -> _T: ...
|
|
def __set__(self, obj: Any, value: Any) -> None: ...
|
|
|
|
class ElementProxy:
|
|
@property
|
|
def element(self) -> BaseOxmlElement: ...
|
|
|
|
class Parented: ...
|