It's a bit redundant to display inlay hints for variables when the right-hand side of the assignment is either a class instantiation or a cast because in that case the type of the variable is already written verbatim in the code. IntelliJ does the same.
Example:
from collections.abc import Coroutine
from typing import Any, cast
from aioprometheus.asgi.middleware import MetricsMiddleware
from aioprometheus.asgi.quart import metrics
# Fix type of `metrics`
cast_metrics = cast(Coroutine[Any, Any, tuple[bytes, dict[str, str]]], metrics)
i = int(2)
It's a bit redundant to display inlay hints for variables when the right-hand side of the assignment is either a class instantiation or a cast because in that case the type of the variable is already written verbatim in the code. IntelliJ does the same.
Example:
Related: https://github.com/DetachHead/basedpyright/issues/138, https://github.com/DetachHead/basedpyright/issues/135
Edit: disregard that the actual type of
metrics
is a callable