Skip to content

Commit

Permalink
Fix mypy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 committed Nov 20, 2019
1 parent e1e3e81 commit 2622444
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 7 deletions.
14 changes: 14 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
pytest = "~=4.6.3"
flake8 = "~=3.7.7"
mypy = "==0.720"

[requires]
python_version = "3.8"
186 changes: 186 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions generate_connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def generate_pkg(
max_pads: int,
pad_size: Tuple[float, float],
pad_drills: Iterable[float],
generate_silkscreen: Callable[[List[str], str, str, str, int, int], None],
line_width: int,
generate_silkscreen: Callable[[List[str], str, str, str, int, int, float, float], None],
line_width: float,
version: str,
create_date: Optional[str],
) -> None:
Expand Down Expand Up @@ -225,8 +225,8 @@ def generate_silkscreen_box(
variant: str,
pin_count: int,
rows: int,
spacing: int,
line_width: int,
spacing: float,
line_width: float,
) -> None:
uuid_polygon = uuid(category, kind, variant, 'polygon-contour')

Expand All @@ -251,8 +251,8 @@ def generate_silkscreen_male(
variant: str,
pin_count: int,
rows: int,
spacing: int,
line_width: int,
spacing: float,
line_width: float,
) -> None:
uuid_polygon = uuid(category, kind, variant, 'polygon-contour')

Expand Down Expand Up @@ -527,7 +527,7 @@ def generate_dev(
cmpcat: str,
keywords: str,
rows: int,
spacing: int,
spacing: float,
min_pads: int,
max_pads: int,
pad_drills: Iterable[float],
Expand Down

0 comments on commit 2622444

Please sign in to comment.