![]() |
Generic version of ABCMetaImplementAnyOneOf.
Inherits From: GenericMeta
, ABCMetaImplementAnyOneOf
cirq.value.GenericMetaImplementAnyOneOf(
name, bases, namespace, **kwargs
)
Classes which inherit from Generic[T] must use this type instead of ABCMetaImplementAnyOneOf due to https://github.com/python/typing/issues/449
This issue is specific to python3.6; this class can be removed when Cirq python3.6 support is turned down.
Methods
register
register(
subclass
)
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.