Skip to content

Commit

Permalink
completely drop 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
lubaskinc0de committed Sep 14, 2024
1 parent f197dcd commit 550dba0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/adaptix/_internal/type_tools/basic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,7 @@ def is_generic(tp: TypeHint) -> bool:

def is_bare_generic(tp: TypeHint) -> bool:
"""Check if the type could be parameterized, excluding type aliases (list[T] etc.)"""
return (
(
is_generic(strip_alias(tp))
or is_generic(tp) and not is_parametrized(tp)
or tp in BUILTIN_ORIGIN_TO_TYPEVARS
)
and not is_parametrized(tp)
)
return is_generic(tp) and not is_parametrized(tp)


def is_generic_class(cls: type) -> bool:
Expand Down

0 comments on commit 550dba0

Please sign in to comment.