libcasm.configuration.io.tools.CasmObjectWithPositions#
- libcasm.configuration.io.tools.CasmObjectWithPositions: TypeAlias = libcasm.xtal._xtal.Structure | libcasm.xtal._xtal.Prim | libcasm.configuration._configuration.Prim | libcasm.configuration._configuration.Configuration | libcasm.configuration._configuration.ConfigurationWithProperties#
TypeAlias for a CASM object with positions
May be:
Note that
ConfigurationandConfigurationWithPropertiesare converted toStructureusing the equivalent of:if isinstance(obj, libcasm.configuration.Configuration): obj = obj.to_structure() if isinstance(obj, libcasm.configuration.ConfigurationWithProperties): obj = obj.to_structure()
Note
typing.TypeAlias was introduced in Python3.10; for Python3.9 CasmObjectWithPositions is typing.Any