diff --git a/mp_api/client/mprester.py b/mp_api/client/mprester.py index f19f4a3e..c357e266 100644 --- a/mp_api/client/mprester.py +++ b/mp_api/client/mprester.py @@ -942,7 +942,9 @@ def get_ion_reference_data(self) -> list[dict]: query={"project": "ion_ref_data"}, fields=["identifier", "formula", "data"], paginate=True, - ).get("data") # type: ignore + ).get( + "data" + ) # type: ignore def get_ion_reference_data_for_chemsys(self, chemsys: str | list) -> list[dict]: """Download aqueous ion reference data used in the construction of Pourbaix diagrams. @@ -1221,10 +1223,8 @@ def get_bandstructure_by_material_id( Returns: bandstructure (Union[BandStructure, BandStructureSymmLine]): BandStructure or BandStructureSymmLine object """ - return ( - self.electronic_structure_bandstructure.get_bandstructure_from_material_id( # type: ignore - material_id=material_id, path_type=path_type, line_mode=line_mode - ) + return self.electronic_structure_bandstructure.get_bandstructure_from_material_id( # type: ignore + material_id=material_id, path_type=path_type, line_mode=line_mode ) def get_dos_by_material_id(self, material_id: str): diff --git a/tests/materials/core_function.py b/tests/materials/core_function.py index 2d3c7ecd..bb7138c6 100644 --- a/tests/materials/core_function.py +++ b/tests/materials/core_function.py @@ -62,8 +62,10 @@ def client_search_testing( } if q is None: - raise ValueError(f"Parameter '{param}' with type '{param_type}' was not " - "properly identified in the generic search method test.") + raise ValueError( + f"Parameter '{param}' with type '{param_type}' was not " + "properly identified in the generic search method test." + ) doc = search_method(**q)[0].model_dump()