Skip to content

✨ improved floating operator signatures - #345

Merged
jorenham merged 2 commits into
mainfrom
better-floating-ops
Mar 20, 2025
Merged

jorenham merged 2 commits into
mainfrom
better-floating-ops

Conversation

@jorenham

Copy link
Copy Markdown
Member

This includes a workaround in __divmod__ for microsoft/pyright#9896, so that divmod() will produce the correct results more often when using pyright or basedpyright.
This also works around all of mypy's overload-overlap false-positive's, by splitting up parameter type unions into multiple overloads (which is equivalent, demonstrating that this is indeed bug).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant