Skip to content

Commit

Permalink
Define AST without inheriting Namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunnar Andersson committed Jan 30, 2024
1 parent 83227c4 commit 35c337a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ifex/model/ifex_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,12 @@ class Namespace:


@dataclass
class AST(Namespace):
class AST():
"""
Dataclass used to represent root element in a IFEX AST.
Behaviour is inherited from Namespace class.
"""

pass
name: Optional[str] = str() # Represents name of file. Usually better to name the Namespaces and Interfaces
major_version: Optional[int] = None # Version of file. Usually better to version Interfaces, and Namespaces!
minor_version: Optional[int] = None # ------ " ------
includes: Optional[List[Include]] = field(default_factory=EmptyList)
namespaces: Optional[List[Namespace]] = field(default_factory=EmptyList)

0 comments on commit 35c337a

Please sign in to comment.