[issue29356] TypeError by typing for Ellipsis

2017-01-25 Thread Ádám Szieberth
Ádám Szieberth added the comment: Well, now I believe the way I suggested would conflict with other uses of Ellipsis in type hints. -- resolution: -> not a bug status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue29356] TypeError by typing for Ellipsis

2017-01-23 Thread Ádám Szieberth
New submission from Ádám Szieberth: I would expect Ellipsis the same behavior as None in type hints instead of: TypeError: Union[arg, ...]: each arg must be a type. Got Ellipsis. ... would be much nicer than type(...) there. -- messages: 286134 nosy: Ádám Szieberth priority: normal