Source code for symforce.ops.impl.nonetype_lie_group_ops
# ----------------------------------------------------------------------------# SymForce - Copyright 2022, Skydio, Inc.# This source code is under the Apache 2.0 license found in the LICENSE file.# ----------------------------------------------------------------------------fromsymforceimporttypingasTfromsymforce.ops.impl.abstract_vector_lie_group_opsimportAbstractVectorLieGroupOpsNoneElementOrType=T.Union[None,T.Type[None]]
[docs]classNoneTypeLieGroupOps(AbstractVectorLieGroupOps[None]):""" Class for implementing ops on ``None`` object. This is primarily used when performing ops on dataclasses with optional fields which could be ``None``. :mod:`.abstract_vector_lie_group_ops` lets us only implement the StorageOps functions, and use those functions to perform Group and LieGroup ops. """