Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 24, 2024
1 parent 9ae4dfd commit ce24784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/model/model/property_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_intensive(self) -> bool:
@torch.jit.export
def get_var_name(self) -> str:
"""Get the name of the property."""
if hasattr(obj, 'get_var_name') and callable(getattr(obj, 'get_var_name')):
if hasattr(obj, "get_var_name") and callable(getattr(obj, "get_var_name")):
return self.get_fitting_net().var_name
else:
raise NotImplementedError
Expand Down

0 comments on commit ce24784

Please sign in to comment.