from typing import cast, TypeVar, Any
T = TypeVar("T")
def get_value(type_: type[T]) -> T:
...
foo = get_value(list) # no error
bar: list # correct error (Missing type parameters for generic type "list" [type-arg])
reveal_type(foo[0]) # no error
reveal_type(bar[0]) # correct error (Expression type contains "Any" (has type "List[Any]") [misc])
playground