Skip to content

PythonOutputSymbol

Represents an ‘exported’ symbol from a .py file. Class, enum, interface etc.

Extends OutputSymbol

constructor(name: string | Namekey, spaces: OutputSpace[] | OutputSpace | undefined, options: PythonOutputSymbolOptions)Constructs a new instance of the PythonOutputSymbol class
copy() => PythonOutputSymbol
debugInfoRecord<string, unknown>
instanceMembersimport(“@alloy-js/core”).OutputMemberSpace
isInstanceMemberSymbolboolean
isStaticMemberSymbolboolean
isTypeOnlybooleanReturns true if this symbol is only used in type annotation contexts. Such symbols can be imported inside a TYPE_CHECKING block.
markAsValue() => voidMark this symbol as also being used as a value (not just a type).
memberSpacesreadonly [“static”, “instance”]
modulestring | undefined
staticMembersimport(“@alloy-js/core”).OutputMemberSpace