Skip to content

Commit

Permalink
Add urtype classmethod to get type name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff S committed Mar 5, 2022
1 parent 7fb280e commit 17f4b45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/urtypes/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 17f4b45

Please sign in to comment.