@@ -1195,9 +1195,16 @@ def __ior__(self, value):
11951195
11961196collections .abc .MutableMapping .register (_BaseDictProxy )
11971197
1198- _set_proxy_methods = set (dir (set )) - set (dir (object )) | {
1199- '__ge__' , '__gt__' , '__le__' , '__lt__'
1200- }
1198+ _set_proxy_methods = {
1199+ '__and__' , '__class_getitem__' , '__contains__' , '__iand__' , '__ior__' ,
1200+ '__isub__' , '__iter__' , '__ixor__' , '__len__' , '__or__' , '__rand__' ,
1201+ '__ror__' , '__rsub__' , '__rxor__' , '__sub__' , '__xor__' ,
1202+ '__ge__' , '__gt__' , '__le__' , '__lt__' ,
1203+ 'add' , 'clear' , 'copy' , 'difference' , 'difference_update' , 'discard' ,
1204+ 'intersection' , 'intersection_update' , 'isdisjoint' , 'issubset' ,
1205+ 'issuperset' , 'pop' , 'remove' , 'symmetric_difference' ,
1206+ 'symmetric_difference_update' , 'union' , 'update' ,
1207+ }
12011208_set_proxy_methods = sorted (_set_proxy_methods )
12021209_BaseSetProxy = MakeProxyType ("_BaseSetProxy" , _set_proxy_methods )
12031210del _set_proxy_methods
0 commit comments