[ezdxf] add stubs

This commit is contained in:
jan 2026-02-16 20:48:26 -08:00
commit 4332cf14c0
3 changed files with 8 additions and 5 deletions

View file

@ -1,17 +1,18 @@
from typing import Any, Iterable, Tuple, Sequence
from typing import Any
from collections.abc import Iterable, Sequence
class DXFEntity:
def dxfattribs(self) -> dict[str, Any]: ...
def dxftype(self) -> str: ...
class LWPolyline(DXFEntity):
def get_points(self) -> Iterable[Tuple[float, ...]]: ...
def get_points(self) -> Iterable[tuple[float, ...]]: ...
class Polyline(DXFEntity):
def points(self) -> Iterable[Any]: ... # has .xyz
class Text(DXFEntity):
def get_placement(self) -> Tuple[int, Tuple[float, float, float]]: ...
def get_placement(self) -> tuple[int, tuple[float, float, float]]: ...
def set_placement(self, p: Sequence[float], align: int = ...) -> Text: ...
class Insert(DXFEntity): ...