Skip to content

Commit

Permalink
👌Avoid redefining built-in type
Browse files Browse the repository at this point in the history
Fixes redefined-builtin (W0622)
  • Loading branch information
jsnel committed Nov 4, 2022
1 parent c5996bf commit f96340f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glotaran/model/test/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ class MockItem:
idict_option: dict[str, ModelItemType[int]] | None = None

for attr in fields(MockItem):
structure, type = strip_type_and_structure_from_attribute(attr)
print(attr.name, attr.type, structure, type)
structure, type_ = strip_type_and_structure_from_attribute(attr)
print(attr.name, attr.type, structure, type_)
assert structure in (None, dict, list)
assert type is int
assert type_ is int


def test_model_get_items():
Expand Down

0 comments on commit f96340f

Please sign in to comment.