From 7786e9e2c98dba7139f8ddd1b0226c54c01fc7c2 Mon Sep 17 00:00:00 2001 From: JosePizarro3 Date: Thu, 26 Sep 2024 15:14:34 +0200 Subject: [PATCH] Move EntryArchive to typechecking --- src/nomad_parser_wannier90/parsers/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nomad_parser_wannier90/parsers/parser.py b/src/nomad_parser_wannier90/parsers/parser.py index 180901b..dde8528 100644 --- a/src/nomad_parser_wannier90/parsers/parser.py +++ b/src/nomad_parser_wannier90/parsers/parser.py @@ -5,9 +5,9 @@ from nomad.config import config if TYPE_CHECKING: + from nomad.datamodel import EntryArchive from structlog.stdlib import BoundLogger -from nomad.datamodel import EntryArchive from nomad.parsing.file_parser import Quantity, TextParser from nomad.units import ureg from nomad_simulations.schema_packages.atoms_state import AtomsState @@ -478,7 +478,7 @@ def get_mainfile_keys(self, **kwargs): return ['DFTPlusTB_workflow'] def parse( - self, filepath: str, archive: EntryArchive, logger: 'BoundLogger' + self, filepath: str, archive: 'EntryArchive', logger: 'BoundLogger' ) -> None: self.mainfile = filepath self.maindir = os.path.dirname(self.mainfile)