cfdm.Constructs.construct_type

Constructs.construct_type(key)[source]

Return the type of a construct for a given key.

New in version (cfdm): 1.7.0

See also

construct_types

Parameters
key: str

A construct identifier.

Returns
str or None

The construct type, or None if the key is not present.