Documentation menu

UsageKind

SymbolUsageType is an enumeration class that defines different types of symbol usage within Python code.

View source on GitHub

Attributes


BODY


Usage within the body of a function/method.

DECORATOR


Usage within a decorator.

DEFAULT_VALUE


Represents a default value in a function/method parameter.

EXPORTED_SYMBOL


Used in an export statement.

EXPORTED_WILDCARD


Re-exported by a wildcard export.

GENERIC


Used as a type parameter to another type.

IMPORTED


Imported with an import statement.

IMPORTED_WILDCARD


Imported with a wildcard import statement.

RETURN_TYPE


Used as a return type annotation.

SUBCLASS


Used in symbol inheritance.

TYPED_PARAMETER


Used as a typed parameter in a function/method.

TYPE_ANNOTATION


Used as a type annotation on a parameter or assignment statement.

TYPE_DEFINITION


Used in a type alias.