limit number of arguments on more functions

This commit is contained in:
Jan Petykiewicz 2020-09-10 20:47:00 -07:00
parent 0e04633f61
commit f996a1629f
3 changed files with 4 additions and 2 deletions

View File

@ -34,6 +34,7 @@ DEFAULT_LAYER = 'DEFAULT'
def write(pattern: Pattern, def write(pattern: Pattern,
stream: io.TextIOBase, stream: io.TextIOBase,
*,
modify_originals: bool = False, modify_originals: bool = False,
dxf_version='AC1024', dxf_version='AC1024',
disambiguate_func: Callable[[Iterable[Pattern]], None] = None): disambiguate_func: Callable[[Iterable[Pattern]], None] = None):

View File

@ -54,6 +54,7 @@ def build(patterns: Union[Pattern, List[Pattern]],
meters_per_unit: float, meters_per_unit: float,
logical_units_per_unit: float = 1, logical_units_per_unit: float = 1,
library_name: str = 'masque-gdsii-write', library_name: str = 'masque-gdsii-write',
*,
modify_originals: bool = False, modify_originals: bool = False,
disambiguate_func: Callable[[Iterable[Pattern]], None] = None, disambiguate_func: Callable[[Iterable[Pattern]], None] = None,
) -> gdsii.library.Library: ) -> gdsii.library.Library:

View File

@ -12,8 +12,8 @@ from .. import Pattern
def writefile(pattern: Pattern, def writefile(pattern: Pattern,
filename: str, filename: str,
custom_attributes: bool=False): custom_attributes: bool=False):
""" """
Write a Pattern to an SVG file, by first calling .polygonize() on it Write a Pattern to an SVG file, by first calling .polygonize() on it
to change the shapes into polygons, and then writing patterns as SVG to change the shapes into polygons, and then writing patterns as SVG