Skip to content

PythonName

The name of the corresponding API element in Python. By default, this is the name of the declaration in the stubs.

Parameters:

Name Type Description Default
name String - -

Targets:

  • Attribute
  • Class
  • Enum
  • EnumVariant
  • Function
  • Parameter
  • Pipeline
  • Segment
Stub code in codeGeneration.sdsstub

@Targets([
    AnnotationTarget.Attribute,
    AnnotationTarget.Class,
    AnnotationTarget.Enum,
    AnnotationTarget.EnumVariant,
    AnnotationTarget.Function,
    AnnotationTarget.Parameter,
    AnnotationTarget.Pipeline,
    AnnotationTarget.Segment,
])
annotation PythonName(
    name: String
)