Inspectopedia 2026.3 Help

Type hinting

'# type: ignore' comment without a known inspection code   New in this release

Reports a # type: ignore or # pycharm: ignore comment that names no inspection code of this IDE.

Incompatible stub packages  

Reports stub packages that do not support the version of the corresponding runtime package.

Incorrect type  

Reports type errors in function call expressions, targets, and return values.

Incorrect variance  

Reports incorrect use of Python type variables due to variance issues.

Inheritance from classes with disjoint bases  

Reports a class that inherits from two base classes with incompatible disjoint bases (PEP 800).

Invalid declaration of overloads  

Reports cases when overloads in regular Python files are placed after the implementation or when their signatures are not compatible with the implementation.

Invalid definition of a named tuple using 'typing.NamedTuple'  

Reports invalid definition of a typing.NamedTuple.

Invalid protocol definitions and usages  

Reports invalid definitions and usages of protocols introduced in PEP-544.

Invalid type hints definitions and usages  

Reports invalid usages of type hints.

Invalid TypedDict definition and usages  

Reports invalid definition and usage of TypedDict.

Invalid usage of @override  

Reports when a method decorated with @override doesn't have a matching method in its ancestor classes.

Invalid usage of ClassVar variables  

Reports invalid usages of ClassVar annotations.

Invalid usage of new-style type parameters and type aliases  

Reports invalid usage of PEP 695 type parameter syntax.

Invalid usage of NewType  

Reports invalid usages of NewType.

Invalid usages of final classes, methods, and variables  

Reports invalid usages of final classes, methods and variables.

Missing type hinting for function definition  

Reports missing type hints for function declaration in one of the two formats: parameter annotations or a type comment.

Redeclared type alias  

Reports redeclarations of type aliases.

Stub packages advertiser  

Reports availability of stub packages.

Type cast between unrelated types  

Reports typing.cast calls where the source and target types are unrelated.

Unknown inspection code in an 'ignore' comment   New in this release

Reports a PyCharm code in a # type: ignore or # pycharm: ignore comment that names no inspection.

Unnecessary type cast  

Reports unnecessary calls to typing.cast when the expression already has the specified target type.

Unused type parameter default   New in this release

Reports a type parameter default (PEP 696) that can never be used because a parameter typed with that type variable has its own default value.

Violated 'typing.assert_type'  

Checks typing.assert_type(val, typ, /) calls and reports cases when val's inferred type is not typ.

Last modified: 20 November 2026