heitzmann / gdstk

Gdstk (GDSII Tool Kit) is a C++/Python library for creation and manipulation of GDSII and OASIS files.
https://heitzmann.github.io/gdstk/
Boost Software License 1.0
324 stars 78 forks source link

Cell.write_svg has incorrect type annotation for shape_style #221

Closed FaustinCarter closed 6 months ago

FaustinCarter commented 7 months ago

The type annotation for shape_style is dict[tuple[int, int], str] | None. However, based on the example in the documentation here (https://heitzmann.github.io/gdstk/library/gdstk.Cell.html#gdstk.Cell.write_svg) it should actually be dict[tuple[int, int], dict[str, str]] | None.

heitzmann commented 6 months ago

Thanks for reporting!