Skip to content

Commit

Permalink
Fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Sep 27, 2024
1 parent 23aa932 commit 99bb043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parl_register_interests/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def process_data_2019():
"data", "data_packages", "parliament_2019", "register_of_interests.parquet"
)
df = pd.read_parquet(origin)
mask = (df["latest_declaration"] >= "2019-12-12") & (
mask = (df["latest_declaration"] >= "2019-12-12") & ( # type: ignore
df["latest_declaration"] < "2024-07-01"
) # type: ignore
df[mask].to_parquet(dest, index=False)
Expand Down
2 changes: 1 addition & 1 deletion src/parl_register_interests/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_word_list(regmem_date: str):

# combine all series of the dataframe into one big series
combined = pd.concat(serieses)
processed_regmem = " ".join(combined.astype(str))
processed_regmem = " ".join(combined.astype(str)) # type: ignore

# all words that made it through to the final output
processed_words = set(
Expand Down

0 comments on commit 99bb043

Please sign in to comment.