Add ezdxf stubs
This commit is contained in:
parent
ebfe1b559c
commit
0f49924aa6
4 changed files with 53 additions and 0 deletions
20
stubs/ezdxf/layouts.pyi
Normal file
20
stubs/ezdxf/layouts.pyi
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from typing import Any, Iterator, Sequence, Union, Iterable
|
||||
from .entities import DXFEntity
|
||||
|
||||
class BaseLayout:
|
||||
def __iter__(self) -> Iterator[DXFEntity]: ...
|
||||
def add_lwpolyline(self, points: Iterable[Sequence[float]], dxfattribs: dict[str, Any] = ...) -> Any: ...
|
||||
def add_text(self, text: str, dxfattribs: dict[str, Any] = ...) -> Any: ...
|
||||
def add_blockref(self, name: str, insert: Any, dxfattribs: dict[str, Any] = ...) -> Any: ...
|
||||
|
||||
class Modelspace(BaseLayout):
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
|
||||
class BlockLayout(BaseLayout):
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
|
||||
class BlockRecords:
|
||||
def new(self, name: str) -> BlockLayout: ...
|
||||
def __iter__(self) -> Iterator[BlockLayout]: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue