Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define AST without inheriting Namespace #106

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading