Skip to content

Commit

Permalink
Merge pull request #1198 from metno/fix-var-repr
Browse files Browse the repository at this point in the history
Adds missing f to f string for printing info about variable
  • Loading branch information
dulte authored Jun 11, 2024
2 parents d356aa0 + 1fd6170 commit 6f84488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyaerocom/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def __getitem__(self, key):
return self.__dict__[key]

def __repr__(self):
return "{self.var_name}\nstandard_name: {self.standard_name}; Unit: {self.units}"
return f"{self.var_name}\nstandard_name: {self.standard_name}; Unit: {self.units}"

def __eq__(self, other):
if isinstance(other, str):
Expand Down

0 comments on commit 6f84488

Please sign in to comment.