Skip to content

Commit 00fb7f4

Browse files
committed
Ignore hint on assert
1 parent 728f210 commit 00fb7f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tcod/ecs/_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def _is_defaultdict_type(type_hint: object) -> bool:
1414

1515
def _setup_defaultdict_factory(type_hint: type[defaultdict[Any, Any] | object]) -> Callable[[], Any]:
1616
"""Return the factory value for a defaultdict given its value type-hint."""
17-
assert type_hint is not Any
17+
assert type_hint is not Any # type: ignore[comparison-overlap]
1818
if get_origin(type_hint) is not defaultdict:
1919
return get_origin(type_hint) or type_hint
2020
return functools.partial(defaultdict, _setup_defaultdict_factory(get_args(type_hint)[1]))

0 commit comments

Comments
 (0)