Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Munro authored Feb 23, 2023
1 parent 4891685 commit 00b29ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emmet-api/emmet/api/routes/materials/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def formula_to_criteria(formulas: str) -> Dict:

for el, n in comp.to_reduced_dict.items():
if el in real_elts:
crit[f"composition_reduced.{el}"] = n
crit[f"composition_reduced.{el}"] = n # type: ignore

return crit

Expand Down Expand Up @@ -88,7 +88,7 @@ def formula_to_criteria(formulas: str) -> Dict:

try:
for el, n in comp.to_reduced_dict.items():
crit[f"composition_reduced.{el}"] = n
crit[f"composition_reduced.{el}"] = n # type: ignore
except IndexError:
raise HTTPException(
status_code=400,
Expand Down

0 comments on commit 00b29ea

Please sign in to comment.