obspy.core.util.attribdict.AttribDict._cast_type

AttribDict._cast_type(key, value)[source]

Cast type of value to type required in _types dict.

Parameters:
  • key (str) The key from __setattr__.
  • value The value being set to key.
Returns:

value cast to correct type.