mypy · mypy/var-annotated
var-annotated
Variable Needs Type Annotation
mypy cannot infer the type of a variable from its context and requires an explicit annotation. Add a type annotation such as x: list[int] = [].
References
In this namespace
← previous valid-type Invalid Type Expression
— end of namespace —