Add ezdxf stubs
This commit is contained in:
parent
ebfe1b559c
commit
0f49924aa6
4 changed files with 53 additions and 0 deletions
17
stubs/ezdxf/entities.pyi
Normal file
17
stubs/ezdxf/entities.pyi
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from typing import Any, Iterable, Tuple, Sequence
|
||||
|
||||
class DXFEntity:
|
||||
def dxfattribs(self) -> dict[str, Any]: ...
|
||||
def dxftype(self) -> str: ...
|
||||
|
||||
class LWPolyline(DXFEntity):
|
||||
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 set_placement(self, p: Sequence[float], align: int = ...) -> Text: ...
|
||||
|
||||
class Insert(DXFEntity): ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue