[ezdxf] add stubs
This commit is contained in:
parent
ff8ca92963
commit
4332cf14c0
3 changed files with 8 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
from typing import Any, TextIO, Iterable
|
from typing import Any, TextIO
|
||||||
|
from collections.abc import Iterable
|
||||||
from .layouts import Modelspace, BlockRecords
|
from .layouts import Modelspace, BlockRecords
|
||||||
|
|
||||||
class Drawing:
|
class Drawing:
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,18 @@
|
||||||
from typing import Any, Iterable, Tuple, Sequence
|
from typing import Any
|
||||||
|
from collections.abc import Iterable, Sequence
|
||||||
|
|
||||||
class DXFEntity:
|
class DXFEntity:
|
||||||
def dxfattribs(self) -> dict[str, Any]: ...
|
def dxfattribs(self) -> dict[str, Any]: ...
|
||||||
def dxftype(self) -> str: ...
|
def dxftype(self) -> str: ...
|
||||||
|
|
||||||
class LWPolyline(DXFEntity):
|
class LWPolyline(DXFEntity):
|
||||||
def get_points(self) -> Iterable[Tuple[float, ...]]: ...
|
def get_points(self) -> Iterable[tuple[float, ...]]: ...
|
||||||
|
|
||||||
class Polyline(DXFEntity):
|
class Polyline(DXFEntity):
|
||||||
def points(self) -> Iterable[Any]: ... # has .xyz
|
def points(self) -> Iterable[Any]: ... # has .xyz
|
||||||
|
|
||||||
class Text(DXFEntity):
|
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: ...
|
def set_placement(self, p: Sequence[float], align: int = ...) -> Text: ...
|
||||||
|
|
||||||
class Insert(DXFEntity): ...
|
class Insert(DXFEntity): ...
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
from typing import Any, Iterator, Sequence, Union, Iterable
|
from typing import Any
|
||||||
|
from collections.abc import Iterator, Sequence, Iterable
|
||||||
from .entities import DXFEntity
|
from .entities import DXFEntity
|
||||||
|
|
||||||
class BaseLayout:
|
class BaseLayout:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue