On Tue, Sep 28, 2021 at 10:27 AM Tal Einat <taleinat@gmail.com> wrote:
I'm the author of PEP 661: Sentinel Values. Here's a direct link to the PEP.

There was indeed a significant thread about this here on typing-sig (also mentioned in a previous message in this thread).

Oh, I see, and I participated. Sorry for being so fuzzy-brained.
 
The current status of the PEP is that it's stalled due to me not finishing it. I got caught up in the typing discussion, largely due to not having much previous experience with Python typing, and failed to come to a clear conclusion of what a good solution would be.

I think you've been given all the options in the thread, and you just have to pick one. The best way to find out what mypy currently supports is to install it and try it out on some test files (make sure to run `mypy --strict`).

--
--Guido van Rossum (python.org/~guido)