Ken Jin <kenjin4...@gmail.com> added the comment:
A possible workaround for _PosArgs in collections.abc without depending on typing could be like this: _PosArgs = type('_PosArgs', (tuple, ), {}) This would help out the future type proposals too, because GenericAlias accepts non-type args. __args__ of Callable in typing and collections.abc won't be == though. Because all typing types aren't equal to their builtin counterparts. Eg. Tuple[int] == tuple[int] is False. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42195> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com