Codegen home pagelight logodark logo
  • GitHub
  • GitHub
Documentation
API Reference
CLI
Blog
Changelog
API Reference
  • Overview
  • Core
    • Argument
    • Assignment
    • AssignmentStatement
    • Attribute
    • AwaitExpression
    • BinaryExpression
    • BlockStatement
    • Boolean
    • Callable
    • CatchStatement
    • ChainedAttribute
    • Class
    • CodeBlock
    • CodeOwner
    • Codebase
    • Comment
    • CommentGroup
    • ComparisonExpression
    • Decorator
    • Dict
    • Directory
    • Editable
    • Export
    • ExportStatement
    • Exportable
    • Expression
    • ExpressionGroup
    • ExpressionStatement
    • ExternalModule
    • File
    • FlagKwargs
    • ForLoopStatement
    • Function
    • FunctionCall
    • GenericType
    • HasBlock
    • HasName
    • HasValue
    • IfBlockStatement
    • Import
    • ImportStatement
    • ImportType
    • Importable
    • Interface
    • List
    • MessageType
    • MultiExpression
    • MultiLineCollection
    • Name
    • NamedType
    • NoneType
    • Number
    • Pair
    • Parameter
    • ParenthesizedExpression
    • Placeholder
    • PlaceholderType
    • RaiseStatement
    • ReturnStatement
    • SourceFile
    • Span
    • Statement
    • StatementType
    • String
    • StubPlaceholder
    • SubscriptExpression
    • SwitchCase
    • SwitchStatement
    • Symbol
    • SymbolGroup
    • SymbolStatement
    • TernaryExpression
    • TryCatchStatement
    • Tuple
    • TupleType
    • Type
    • TypeAlias
    • TypePlaceholder
    • Typeable
    • UnaryExpression
    • UnionType
    • Unpack
    • Unwrappable
    • Usable
    • Usage
    • UsageKind
    • UsageType
    • Value
    • WhileStatement
    • WithStatement
  • Python
  • Typescript
Core

UsageType

Describes how a symbol is used elsewhere. Used in conjunction with get_usages

View Source on Github

​
Attributes

​
ALIASED

Aliased indirect usages

​
CHAINED

Chained references (ie: module.foo)

​
DIRECT

Direct imports and usages within the same file

​
INDIRECT

Indirect usages with the same name

Was this page helpful?

UsageKindValue
xlinkedin
Powered by Mintlify
On this page
  • Attributes
  • ALIASED
  • CHAINED
  • DIRECT
  • INDIRECT