Skip to content

Commit

Permalink
feat: mode and base_type are class attributes now
Browse files Browse the repository at this point in the history
  • Loading branch information
pablojhl committed Sep 19, 2024
1 parent 8a020a4 commit 4237716
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 195 deletions.
8 changes: 0 additions & 8 deletions nada_dsl/nada_types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ def to_type(self):
"""Default implementation for the Conversion of a type into MIR representation."""
return self.__class__.class_to_type()

def to_mode(self) -> Mode:
"""Default implementation for getting the mode for a type"""
raise NotImplementedError()

def to_base_type(self) -> BaseType:
"""Default implementation for getting the base type for a type"""
raise NotImplementedError()

@classmethod
def class_to_type(cls):
"""Converts a class into a type"""
Expand Down
Loading

0 comments on commit 4237716

Please sign in to comment.