apache_beam.typehints.typecheck module¶
Runtime type checking support.
For internal use only; no backwards-compatibility guarantees.
-
class
apache_beam.typehints.typecheck.
AbstractDoFnWrapper
(dofn)[source]¶ Bases:
apache_beam.transforms.core.DoFn
An abstract class to create wrapper around DoFn
-
class
apache_beam.typehints.typecheck.
OutputCheckWrapperDoFn
(dofn, full_label)[source]¶ Bases:
apache_beam.typehints.typecheck.AbstractDoFnWrapper
A DoFn that verifies against common errors in the output type.
-
class
apache_beam.typehints.typecheck.
TypeCheckWrapperDoFn
(dofn, type_hints, label=None)[source]¶ Bases:
apache_beam.typehints.typecheck.AbstractDoFnWrapper
A wrapper around a DoFn which performs type-checking of input and output.
-
class
apache_beam.typehints.typecheck.
TypeCheckCombineFn
(combinefn, type_hints, label=None)[source]¶ Bases:
apache_beam.transforms.core.CombineFn
A wrapper around a CombineFn performing type-checking of input and output.