Closed
Description
This check is no longer relevant:
pandas/.pre-commit-config.yaml
Lines 83 to 88 in 9ab55b4
Since using PEP604 rewrites, this would be written as
x: Series | DataFrame
anyway.
x: FrameOrSeriesUnion
is actually just as long as the above, and arguably less explicit.
@simonjayhawkins thoughts on replacing all the FrameOrSeriesUnion
occurrences, removing the alias, and removing the above check?