Closed max-muoto closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 80.87%. Comparing base (
79a2cf1
) to head (93e2fc0
). Report is 8 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Map elements accepts a callable
Callable[[Series], Series] | Callable[[Any], Any]
, this for all intensive purposes should just acceptCallable[[Any], Any]
. Previously, the former was fine in type-checkers such as Pyright, however as Eric Traut explains here, there's not a great way for Pyright to deterministically determine which to use when evaluating lambdas, which can lead to Pyright errors when calling this function. Take this example, which will lead to an error in the latest version of Pyright, which I would imagine should be fully supported: