[New-bugs-announce] [issue25830] _TypeAlias: Discrepancy between docstring and behavior

flying sheep report at bugs.python.org
Wed Dec 9 06:57:32 EST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue25830>
_______________________________________


More information about the New-bugs-announce mailing list