Create a TypeVar bound to TypedDict

I’m trying to create a TypeVar that is limited to TypedDict. When I try TV = TypeVar("TV", bound=TypedDict), I see type checker (mypy) error: Variable "typing.TypedDict" is not valid as a type [valid-type].

When I look at typing source code, I see that TypedDict is a function, not a class.

How to create a type variable that can only accept TypedDict type? And how does inheriting a function even work?

This isn’t expressible in Python’s type system. More discussion can be found in `TypedDict` can't be used as an argument type or upper bound · Issue #11030 · python/mypy · GitHub

Does it mean that there’s no any way to make TypeVar bound to TypedDict except specifying it in the documentation?