mapteksdk.data.typing module
Classes used for type hints which can be used at run time.
Unlike mapteksdk.common.typing, it is safe to import from this package at runtime.
- class DataObjectT_co
Indicates a child class of DataObject.
alias of TypeVar(‘DataObjectT_co’, bound=
DataObject
, covariant=True)
- class ImportedObject(name, oid)
Bases:
NamedTuple
,Generic
[DataObjectT_co
]An object imported from a file.
This named tuple includes the name and the ObjectID of an imported object.
- Parameters:
name (str)
oid (ObjectID[DataObjectT_co])
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.
- name: str
The name provided by the import framework for the imported object.
Multiple objects imported from the same file may have the same name.
- oid: ObjectID[DataObjectT_co]
The object ID of the imported object.