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 make 
it actually work with isinstance (probably by delegating to type_impl)

----------
components: Library (Lib)
messages: 256154
nosy: flying sheep
priority: normal
severity: normal
status: open
title: _TypeAlias: Discrepancy between docstring and behavior
type: behavior
versions: Python 3.5, Python 3.6

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

Reply via email to