Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Open
Description
Repro:
>>> typeA[X]=list[X]>>>dir(A[int])[...,'__copy__','__deepcopy__', ...]
We can access all other attributes, but not__copy__ and__deepcopy__:
>>> A[int].__copy__Traceback (most recent call last): File"<stdin>", line1, in<module>AttributeError:'types.GenericAlias' object has no attribute '__copy__'. Did you mean: '__doc__'?>>> A[int].__deepcopy__Traceback (most recent call last): File"<stdin>", line1, in<module>AttributeError:'types.GenericAlias' object has no attribute '__deepcopy__'
I am not quite sure what is the right thing to do here 🤔