Skip to content

Commit a259b39

Browse files
committed
Fix missing __ge__, __gt__, __le__, and __lt__ methods in SetProxy
1 parent 3706c78 commit a259b39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/multiprocessing/managers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,9 @@ def __ior__(self, value):
11951195

11961196
collections.abc.MutableMapping.register(_BaseDictProxy)
11971197

1198-
_set_proxy_methods = set(dir(set)) - set(dir(object))
1198+
_set_proxy_methods = set(dir(set)) - set(dir(object)) | {
1199+
'__ge__', '__gt__', '__le__', '__lt__'
1200+
}
11991201
_set_proxy_methods = sorted(_set_proxy_methods)
12001202
_BaseSetProxy = MakeProxyType("_BaseSetProxy", _set_proxy_methods)
12011203
del _set_proxy_methods

0 commit comments

Comments
 (0)