[issue46644] typing: remove callable() check from typing._type_check

Gregory Beauregard report at bugs.python.org
Sat Feb 5 16:23:10 EST 2022


Gregory Beauregard <greg at greg.red> added the comment:

Further questions: the msg argument in _type_check now wouldn't be used for anything! It was only used in the case where a type wasn't callable(). I think it should be removed. I'm also a bit negative on disallowing tuples in the case of e.g. Final and such since it complicates implementing tuple types in Python down the line if desired.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46644>
_______________________________________


More information about the Python-bugs-list mailing list