On Wed, Sep 29, 2021 at 2:43 PM Tal Einat <taleinat@gmail.com> wrote:

On Tue, Sep 28, 2021 at 10:10 PM Guido van Rossum <guido@python.org> wrote:
On Tue, Sep 28, 2021 at 10:27 AM Tal Einat <taleinat@gmail.com> wrote:
 
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`).

Indeed, that's my impression too.

After going through the discussions again, I'm going to go with using Literal[SentinelValue]. I'll add that to the PEP soon.

The PEP has been updated, with the Specification section now saying the type annotations should use Literal[].

(Note that the page at that link may take several hours to show the latest changes.)

- Tal