Update base.py

This commit is contained in:
Jedd Morgan
2023-09-05 12:50:11 +01:00
committed by GitHub
parent 854ce9f77f
commit 972339454d
+1
View File
@@ -467,6 +467,7 @@ class Base(_RegisteringBase):
@units.setter
def units(self, value: Union[str, Units, None]):
"""While this property accepts any string value, geometry expects units to be specific strings (see Units enum)"""
if isinstance(value, str) or value is None:
self._units = value
elif isinstance(value, Units):