spark.core.signature_parser#

Functions#

normalize_typehint(t)

Produce a tuple of fully expanded, non-union, non-merged type variants.

is_instance(value, types)

get_input_specs(module)

Returns a dictionary of the SparkModule's input port specifications.

get_output_specs(module)

Returns a dictionary of the SparkModule's input port specifications.

Module Contents#

spark.core.signature_parser.normalize_typehint(t)[source]#

Produce a tuple of fully expanded, non-union, non-merged type variants.

Return type:

tuple[type]

spark.core.signature_parser.is_instance(value, types)[source]#
spark.core.signature_parser.get_input_specs(module)[source]#

Returns a dictionary of the SparkModule’s input port specifications.

Parameters:

module (type[spark.core.module.SparkModule])

Return type:

dict[str, spark.core.specs.PortSpecs]

spark.core.signature_parser.get_output_specs(module)[source]#

Returns a dictionary of the SparkModule’s input port specifications.

Parameters:

module (type[spark.core.module.SparkModule])

Return type:

dict[str, spark.core.specs.PortSpecs]