From f96340f44acd5828a027e70abedb1eb0d45a94a9 Mon Sep 17 00:00:00 2001 From: Joris Snellenburg Date: Fri, 4 Nov 2022 23:48:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8CAvoid=20redefining=20built-in=20typ?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes redefined-builtin (W0622) --- glotaran/model/test/test_item.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glotaran/model/test/test_item.py b/glotaran/model/test/test_item.py index 0ac8d7052..d66e14084 100644 --- a/glotaran/model/test/test_item.py +++ b/glotaran/model/test/test_item.py @@ -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():