| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Good fix!
Sorry, something went wrong.
PR #2833 introduced more flexible handling for the type of the default parameter, but the extra type variable caused some issues. Add another overload for the case where there is no default param. This is I think related to the issues we have had with `get` recently?
PR #2833 introduced more flexible handling for the type of the default parameter, but the extra type variable caused some issues. Add another overload for the case where there is no default param. This is I think related to the issues we have had with `get` recently?
| Back | FazBrowse Home | New Git URL |
Probably mildly clear if you provide a default value for min/max builtins the return type becomes a 'Union'.
I don't know if that's too much but I also added two other commits (you squash anyway, cherry-pick) because in the recent mypy we can mark positional args via '_' and of course kw only args via '*'.
I didn't find tests. It's also really hard to write this without typos because it's so ... dense. 🤞 hope it helps.
Fixes python/mypy#6460