TYP tighten any return type · Issue #44802 · pandas-dev/pandas (original) (raw)

Currently, any returns Series | bool.

However, for DataFrame.any the return type should be Series, and for Series.any the return type should be bool.

Marking as good first issue, but please only attempt this if you already have some experience with Python typing and mypy.