New submission from Bas van Beek <bas.vanb...@hotmail.com>:

`Ellipsis` is one of the few builtin objects whose type is not exposed via the 
`types` module. 
This is not really an issue during runtime, as you can always call 
`type(Ellipsis)`, but for the purpose of typing it is detrimental; the lack of 
suitable type means that it is impossible to properly annotate a function which 
takes or returns `Ellipsis` (unless one is willing to resort to the use of 
non-public types: https://github.com/python/typeshed/issues/3556).

In order to resolve this issue I propose to reintroduce `types.EllipsisType`. 
This should be a fairly simple process, so if there are no objections I'd be 
willing to give it a shot.

----------
components: Library (Lib)
messages: 377135
nosy: BvB93
priority: normal
severity: normal
status: open
title: Consider reintroducing `types.EllipsisType` for the sake of typing
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41810>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to