getting error generic T and P are not defined while
adding the type annotation to the decorator
def db_decorator[T, **P](self, func: Callable[P, T]) -> Callable[P, T]: # Name 'T' is not defined
def __call__(
container_id: Optional[str] = None,
database_id: Optional[str] = None,
partition_key: Optional[str] = None,
*args: P.args, # Name 'P' is not defined
**kwargs: P.kwargs, # Name 'P' is not defined
) -> T:
reference python documentation: https://docs.python.org/3/library/typing.html#typing.ParamSpec
couldn't find python3.12 integration with the mypy in the documentation