diff --git a/cclib/attribute_parsers/atomcharges.py b/cclib/attribute_parsers/atomcharges.py index 2e8dd9a11..5a153e000 100644 --- a/cclib/attribute_parsers/atomcharges.py +++ b/cclib/attribute_parsers/atomcharges.py @@ -215,7 +215,7 @@ def NBO(file_handler, ccdata) -> Optional[dict]: return None @staticmethod - def qchem(file_handler, ccdata) -> list | None: + def qchem(file_handler, ccdata) -> Optional[dict]: line = file_handler.last_line constructed_charge_data = None constructed_spin_data = None diff --git a/cclib/attribute_parsers/atommasses.py b/cclib/attribute_parsers/atommasses.py index ece1d8522..dd1d7d3fd 100644 --- a/cclib/attribute_parsers/atommasses.py +++ b/cclib/attribute_parsers/atommasses.py @@ -33,7 +33,7 @@ def gaussian(file_handler, ccdata) -> Optional[dict]: return None @staticmethod - def qchem(file_handler, ccdata) -> list | None: + def qchem(file_handler, ccdata) -> Optional[dict]: # ccdata is "const" here and we don't need to modify it yet. The driver will set the attr line = file_handler.last_line constructed_data = None