Yury Selivanov added the comment: It looks like it's a bug.
Spam.eggs.__code__.co_varnames will have '_Spam__some_kwarg' as a name of the first parameter. So __annotations__ should have '_Spam__some_kwarg' instead of '__some_kwarg'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20625> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com