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 authored and gunnar-mb committed Feb 6, 2024
1 parent c90f332 commit 79268b9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ifex/model/ifex_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,13 @@ 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
description: Optional[str] = str()
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 79268b9

Please sign in to comment.