Skip to content

Commit

Permalink
Remove no-member suppressions
Browse files Browse the repository at this point in the history
They became unnecessary in Pylint 3.2.0
  • Loading branch information
jond01 committed May 17, 2024
1 parent 6fd17c4 commit 84e6955
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xil/boi.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_boi_df(url: str = _BOI_URL) -> pd.DataFrame:
with get_boi_url_response(url) as response:
series = pd.read_json(response, typ="series", convert_dates=True)
assert "exchangeRates" in series
df = pd.json_normalize(series.exchangeRates) # pylint: disable=no-member
df = pd.json_normalize(series.exchangeRates)
df.columns = _IDX
df = BaseDataFrameNormalizer(df).norm()
return df
Expand Down
2 changes: 1 addition & 1 deletion xil/onezero.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_onezero_df(url: str = _ONEZERO_URL) -> pd.DataFrame:
"""Get One Zero bank exchange rates"""
series = pd.read_json(url, typ="series")
# series.generatingReportDateTime holds the date in YYYY-MM-DD format
df = pd.json_normalize(series.marketingRecords) # pylint: disable=no-member
df = pd.json_normalize(series.marketingRecords)
df = df[df.fromCurrency == CurrencyCode.ILS] # remove data duplication
df.drop(labels="fromCurrency", axis="columns", inplace=True)
df.columns = _IDX
Expand Down
2 changes: 1 addition & 1 deletion xil/poalim.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_df(t: date | None = None, keep_last_date_only: bool = True) -> pd.DataFr
is no specified date t, only the last available date's data is returned.
"""
df = pd.read_json(_get_url(t))
if df.empty: # pylint: disable=no-member
if df.empty:
return df

df = df[_RELEVANT_COLS]
Expand Down

0 comments on commit 84e6955

Please sign in to comment.