UsageKind
SymbolUsageType is an enumeration class that defines different types of symbol usage within Python code. Attributes: SUBCLASS: Used in symbol inheritance. TYPE_ANNOTATION: Used as a type annotation on a parameter or assignment statement. BODY: Usage within the body of a function/method. DECORATOR: Usage within a decorator. RETURN_TYPE: Used as a return type annotation TYPE_DEFINITION: Used in a type alias. 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. DEFAULT_VALUE: Represents a default value in a function/method parameter.
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.
RETURN_TYPE
Used as a return type annotation
SUBCLASS
Used in symbol inheritance.
TYPE_ANNOTATION
Used as a type annotation on a parameter or assignment statement.
TYPE_DEFINITION
Used in a type alias.