diff --git a/src/urtypes/registry.py b/src/urtypes/registry.py index 64fc8c2..7222ad1 100644 --- a/src/urtypes/registry.py +++ b/src/urtypes/registry.py @@ -35,6 +35,10 @@ class RegistryItem: def registry_type(cls): raise NotImplementedError() + @classmethod + def urtype(cls): + return cls.registry_type().type + @classmethod def mapping(cls, item): if isinstance(item, DataItem):