glossary: added '__post_init__'
This commit is contained in:
parent
d19563c27c
commit
714abd9857
@ -47,6 +47,10 @@ class Glossary:
|
|||||||
ID: str | None = None
|
ID: str | None = None
|
||||||
file_suffix: ClassVar[str] = '.glo'
|
file_suffix: ClassVar[str] = '.glo'
|
||||||
|
|
||||||
|
def __post_init__(self) -> None:
|
||||||
|
# FIXME: check for valid languages
|
||||||
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_file(cls: Type[GlossaryInst], file_path: Path) -> GlossaryInst:
|
def from_file(cls: Type[GlossaryInst], file_path: Path) -> GlossaryInst:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user