Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lpicci96 committed Jul 5, 2024
1 parent 72a86d4 commit 78dcc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bblocks/import_tools/imf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __post_init__(self) -> None:
if (self.year is None and self.release is not None) or (
self.year is not None and self.release is None
):
raise ValueError("Both year and release must be specified.")
raise ValueError("Both year and release must be specified or must both be `None`")

def __repr__(self) -> str:
return f"IMF WEO(year={self.year}, release={self.release})"
Expand Down Expand Up @@ -186,4 +186,4 @@ def get_data(
if not keep_metadata:
return df.filter(["iso_code", "name", "indicator", "year", "value"], axis=1)

return df
return df

0 comments on commit 78dcc8b

Please sign in to comment.