Skip to content

Commit

Permalink
fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed Feb 4, 2021
1 parent 6311151 commit 1d55509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ir/test_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def resolve_types(module: Any, ir: IRNode) -> None:

@fixture(
params=["tests.ir.data.dataclass", "tests.ir.data.attr"],
ids=lambda x: x.split(".")[-1],
ids=lambda x: x.split(".")[-1], # type: ignore
)
def module(request: Any) -> Any:
return import_module(request.param)
Expand Down Expand Up @@ -52,7 +52,7 @@ def module(request: Any) -> Any:
),
),
],
ids=lambda x: x[0],
ids=lambda x: x[0], # type: ignore
)
def tested_type(module: Any, request: Any) -> Any:
name = request.param[0]
Expand All @@ -61,5 +61,5 @@ def tested_type(module: Any, request: Any) -> Any:
return {"type": getattr(module, name), "expected": expected}


def test_get_dataclass_ir(tested_type: Any):
def test_get_dataclass_ir(tested_type: Any) -> None:
assert get_dataclass_ir(tested_type["type"]) == tested_type["expected"]

0 comments on commit 1d55509

Please sign in to comment.