[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2016-09-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by 09cc43df4509. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2016-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: Actually isinstance() shouldn't be supported by most things in typing.py (except for those that mimic existing collection ABCs). Even issubclass() should be taken out according to the BDFL-delegate for PEP 484. See

[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2016-01-21 Thread Berker Peksag
Berker Peksag added the comment: Looks like the docstring is a bit misleading. ``isinstance(m, Match)`` behavior is already tested in the test suite: https://hg.python.org/cpython/file/default/Lib/test/test_typing.py#l1297 -- nosy: +berker.peksag, gvanrossum

[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2015-12-09 Thread flying sheep
New submission from flying sheep: _TypeAlias claims in its docstring that “It can be used in instance and subclass checks”, yet promptly contradicts itself if you try it: “Type aliases cannot be used with isinstance().” it would be useful to either document (and therefore bless) type_impl, or