Shared Modules
hera.shared
The shared module of Hera provides control over global configurations, hooks, and some base mixins.
BaseMixin
Source code in src/hera/shared/_global_config.py
Config
Config class dictates the behavior of the underlying Pydantic model.
See Pydantic documentation for more info.
Source code in src/hera/shared/_pydantic.py
allow_mutation
class-attribute
instance-attribute
supports mutating Hera objects post instantiation
allow_population_by_field_name
class-attribute
instance-attribute
support populating Hera object fields by their Field alias
arbitrary_types_allowed
class-attribute
instance-attribute
supports specifying arbitrary types for any field to support Hera object fields processing
smart_union
class-attribute
instance-attribute
uses smart union for matching a field’s specified value to the underlying type that’s part of a union