Skip to content

Commit

Permalink
fix ruff PYI063 Use PEP 570 syntax for positional-only parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Nov 22, 2024
1 parent e0bd3c1 commit b21198c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/atomate2/ase/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class AseBaseModel(BaseModel):
)
molecule: Optional[Molecule] = Field(None, description="The molecule at this step.")

def model_post_init(self, __context: Any) -> None:
def model_post_init(self, _context: Any) -> None:
"""Establish alias to structure and molecule fields."""
if self.structure is None and isinstance(self.mol_or_struct, Structure):
self.structure = self.mol_or_struct
Expand Down
2 changes: 1 addition & 1 deletion src/atomate2/forcefields/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ForcefieldResult(AseResult):
None, description="The structure in the final trajectory frame."
)

def model_post_init(self, __context: Any) -> None:
def model_post_init(self, _context: Any) -> None:
"""Populate final_structure attr."""
self.final_structure = getattr(
self, "final_structure", self.final_mol_or_struct
Expand Down

0 comments on commit b21198c

Please sign in to comment.