types¶
- CONFIG_ID_PATTERN = '[\\w\\-\\/#]+'¶
Any alphanumeric string (w), as well as -
--/-#(to allow hierarchical IDs as well as fragment IDs).Specficially excludes
.to avoid confusion between IDs, paths, and python module namesMay be made less restrictive in the future, will not be made more restrictive.
- PythonIdentifier¶
A single valid python identifier and not one of the reserved identifiers.
See: https://docs.python.org/3.13/library/stdtypes.html#str.isidentifier
alias of
Annotated[str,AfterValidator(func=_is_identifier),AfterValidator(func=_not_reserved)]
- AbsoluteIdentifier¶
A valid python identifier, including globally accessible namespace like module.submodule.ClassName
OR - a name of a builtin function/type
alias of
Annotated[str,AfterValidator(func=_is_absolute_identifier)]
- DependencyIdentifier¶
A {node_id}.{signal} identifier.
The node_id part must be a valid {class}`.PythonIdentifier` .
alias of
Annotated[str,AfterValidator(func=_is_signal_slot)]
- ConfigID¶
A string that refers to a config file by the
idfield in that configalias of
Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern=’[\w\-\/#]+’)])]
- ConfigSource¶
Union of all types of config sources
alias of
Path|PathLike[str] |Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern=’[\w\-\/#]+’)])]
- class Name(name: str)[source]¶
Name of some node output
Examples
def my_function() -> Annotated[int, Name(“charlie”)]: …