@@ -224,9 +224,7 @@ def update_precision_params(self) -> None:
224
224
if self .input_set .incar .get ("PREC" , self .defaults ["PREC" ]["value" ]).upper () in ["ACCURATE" , "HIGH" ]:
225
225
self .valid_values ["PREC" ] = ["ACCURATE" , "ACCURA" , "HIGH" ]
226
226
else :
227
- raise ValueError (
228
- "Validation code check for PREC tag needs to be updated " "to account for a new input set!"
229
- )
227
+ raise ValueError ("Validation code check for PREC tag needs to be updated to account for a new input set!" )
230
228
self .defaults ["PREC" ]["operation" ] = "in"
231
229
232
230
# ROPT. Should be better than or equal to default for the PREC level.
@@ -411,9 +409,7 @@ def update_lmaxmix_and_lmaxtau(self) -> None:
411
409
def update_smearing (self , bandgap_tol = 1.0e-4 ) -> None :
412
410
bandgap = self .task_doc .output .bandgap
413
411
414
- smearing_comment = (
415
- "This is flagged as incorrect because this calculation had a " f"bandgap of { round (bandgap ,3 )} "
416
- )
412
+ smearing_comment = f"This is flagged as incorrect because this calculation had a bandgap of { round (bandgap ,3 )} "
417
413
418
414
# bandgap_tol taken from
419
415
# https://github.com/materialsproject/pymatgen/blob/1f98fa21258837ac174105e00e7ac8563e119ef0/pymatgen/io/vasp/sets.py#L969
@@ -636,7 +632,7 @@ class BasicValidator:
636
632
"""Lightweight validator class to handle majority of parameter checking."""
637
633
638
634
# avoiding dunder methods because these raise too many NotImplemented's
639
- operations : tuple [str ] = ("==" , ">" , ">=" , "<" , "<=" , "in" , "approx" , "auto fail" )
635
+ operations : tuple [str , ... ] = ("==" , ">" , ">=" , "<" , "<=" , "in" , "approx" , "auto fail" )
640
636
641
637
def __init__ (self , global_tolerance = 1.0e-4 ) -> None :
642
638
self .tolerance = global_tolerance
0 commit comments