Skip to content

Commit

Permalink
Fix pyright issue with pandas .apply
Browse files Browse the repository at this point in the history
pandas.DataFrame.apply doesn't seem to be typed correctly for our use
case.
  • Loading branch information
victorlin committed Jul 3, 2023
1 parent d785624 commit 3469831
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion augur/dates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ def get_numerical_dates(metadata:pd.DataFrame, name_col = None, date_col='date',
date,
fmt,
min_max_year
)
) # type: ignore
# The currently installed version of pandas type stubs assumes that
# the func here should never return a None value, therefore it
# thinks this is an issue. However, None values are known to be
# allowed here.
).values
else:
strains = metadata.index.values
Expand Down

0 comments on commit 3469831

Please sign in to comment.