| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Looks like this conflicts with (and accomplishes the same thing as?) #31836 |
Sorry, something went wrong.
|
Oops, good catch! Closing. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Here's a fun inconsistency:
Even though there's an explicit test for the former behaviour, I don't think it's right:
This matters for PEP 646, where we were expecting that a TypeVarTuple with no arguments would expand to nothing rather than (). If we were to change things so it was consistent with the current behaviour of Tuple[()], we'd have
which definitely isn't what we want.
@ilevkivskyi who added the test for the former behaviour, according to the git blame. Is there something I'm missing here?
https://bugs.python.org/issue43224