We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84337ce commit 22d9222Copy full SHA for 22d9222
scripts/generator/specs.py
@@ -25,7 +25,9 @@ class DataElementSpec:
25
stub: bool = False
26
27
def class_name(self) -> str:
28
- return to_class_name(self.title, "E") # type: ignore
+ """Returns a Python class name that can be used as a dataclass."""
29
+ prefix = "E" if int(self.code) >= 1000 else ""
30
+ return to_class_name(self.title, prefix)
31
32
@property
33
def identifier(self) -> str:
0 commit comments