Skip to content

Commit f27e35d

Browse files
committed
Ignore test coverage for legacy type conversions
1 parent d83ea5e commit f27e35d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

injector/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,9 +782,9 @@ def _punch_through_alias(type_: Any) -> type:
782782
def _get_origin(type_: type) -> Optional[type]:
783783
origin = getattr(type_, '__origin__', None)
784784
# Older typing behaves differently there and stores Dict and List as origin, we need to be flexible.
785-
if origin is List:
785+
if origin is List: # pragma: no cover
786786
return list
787-
elif origin is Dict:
787+
elif origin is Dict: # pragma: no cover
788788
return dict
789789
return origin
790790

0 commit comments

Comments
 (0)