You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-04-20.20:28:52.865>created_at=<Date2020-03-12.00:11:51.865>labels= ['3.7', '3.8', 'type-bug', 'library', '3.9']
title='Making instance of `TypeVar` fails because of missing `__name__`'updated_at=<Date2020-04-20.20:28:52.865>user='https://github.com/jack1142'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 3, in <module>
File "C:\Python38\lib\typing.py", line 603, in __init__
def_mod = sys._getframe(1).f_globals['__name__'] # for pickling
KeyError: '__name__'
If this problem with __name__ is not something that needs to be fixed, then I also noticed that the same line in typing.py will also raise when platform doesn't have sys._getframe()
TypeVar
fails when missing__name__
#19616TypeVar
when missing__name__
(GH-19616) #19626TypeVar
when missing__name__
(GH-19616) #19627Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: