diff --git a/pyproject.toml b/pyproject.toml index 4f4091ec..9a22df4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,6 @@ dependencies = [ classifiers = [ 'Development Status :: 3 - Alpha', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', diff --git a/src/adaptix/_internal/type_tools/basic_utils.py b/src/adaptix/_internal/type_tools/basic_utils.py index beedeedb..f92e79ff 100644 --- a/src/adaptix/_internal/type_tools/basic_utils.py +++ b/src/adaptix/_internal/type_tools/basic_utils.py @@ -94,17 +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)) - # for 3.8 and List (list is not generic) - or is_generic(tp) - # at 3.8 list is bare_generic but not generic - # (this function only needs to create predicate) - 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: