modernize type annotations

This commit is contained in:
Jan Petykiewicz 2023-02-23 13:15:32 -08:00 committed by jan
commit 1463535676
34 changed files with 409 additions and 444 deletions

View file

@ -1,4 +1,4 @@
from typing import Tuple, Sequence, Callable
from typing import Sequence, Callable
from pprint import pformat
import numpy
@ -116,12 +116,12 @@ if __name__ == '__main__':
# other: Pattern,
# label_layer: layer_t = 'WATLAYER',
# *,
# port_map: Optional[Dict[str, Optional[str]]] = None,
# port_map: Dict[str, str | None] | None = None,
# **kwargs,
# ) -> 'prout':
#
# Pattern.place(self, other, port_map=port_map, **kwargs)
# name: Optional[str]
# name: str | None
# for name in other.ports:
# if port_map:
# assert(name is not None)