This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BvB93
Recipients BvB93, gvanrossum, joshbode, levkivskyi, serhiy.storchaka
Date 2020-09-19.13:32:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If you're asking whether or not one can infer the return type of `type(Ellipsis)` then yes. 
In such case the inferred type is `builtins.ellipsis`, which is a private stub-only class (see the referenced typeshed issue in my original post).

If you're asking if a valid annotation can be constructed from `type(Ellipsis)` then the answer is unfortunately no (see below for a few examples).

EllipsisType = type(Ellipsis)

# Both examples are considered invalid
def func1(a: type(Ellipsis): ...
def func2(a: EllipsisType): ...

Date User Action Args
2020-09-19 13:32:55BvB93setrecipients: + BvB93, gvanrossum, serhiy.storchaka, levkivskyi, joshbode
2020-09-19 13:32:55BvB93setmessageid: <>
2020-09-19 13:32:55BvB93linkissue41810 messages
2020-09-19 13:32:54BvB93create