Skip to content

Commit 688671e

Browse files
committed
Fix mypy warnings
1 parent e1e3e81 commit 688671e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

generate_connectors.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def generate_pkg(
124124
max_pads: int,
125125
pad_size: Tuple[float, float],
126126
pad_drills: Iterable[float],
127-
generate_silkscreen: Callable[[List[str], str, str, str, int, int], None],
128-
line_width: int,
127+
generate_silkscreen: Callable[[List[str], str, str, str, int, int, float, float], None],
128+
line_width: float,
129129
version: str,
130130
create_date: Optional[str],
131131
) -> None:
@@ -225,8 +225,8 @@ def generate_silkscreen_box(
225225
variant: str,
226226
pin_count: int,
227227
rows: int,
228-
spacing: int,
229-
line_width: int,
228+
spacing: float,
229+
line_width: float,
230230
) -> None:
231231
uuid_polygon = uuid(category, kind, variant, 'polygon-contour')
232232

@@ -251,8 +251,8 @@ def generate_silkscreen_male(
251251
variant: str,
252252
pin_count: int,
253253
rows: int,
254-
spacing: int,
255-
line_width: int,
254+
spacing: float,
255+
line_width: float,
256256
) -> None:
257257
uuid_polygon = uuid(category, kind, variant, 'polygon-contour')
258258

@@ -527,7 +527,7 @@ def generate_dev(
527527
cmpcat: str,
528528
keywords: str,
529529
rows: int,
530-
spacing: int,
530+
spacing: float,
531531
min_pads: int,
532532
max_pads: int,
533533
pad_drills: Iterable[float],
@@ -985,7 +985,6 @@ def _make(dirpath: str) -> None:
985985
create_date='2019-11-20T16:20:00Z'
986986
)
987987

988-
989988
# Generic connector
990989
generate_sym(
991990
dirpath='out/connectors/sym',

0 commit comments

Comments
 (0)