resort weakref classes (#11165)

This improves fidelity of naming and inheritance on 3.11+

related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Stephen Morton
2024-10-01 19:50:10 -07:00
committed by GitHub
parent 6bc1884577
commit c43894568f
3 changed files with 44 additions and 47 deletions

View File

@@ -535,10 +535,11 @@ wsgiref.handlers.BaseHandler.headers_sent
wsgiref.handlers.BaseHandler.result
wsgiref.handlers.BaseHandler.status
(_?weakref.ref|_?weakref.ReferenceType).__call__ # C function default annotation is wrong
_?weakref.CallableProxyType.__getattr__ # Should have all attributes of proxy
_?weakref.ProxyType.__bytes__ # Doesn't actually exist
_?weakref.ProxyType.__getattr__ # Should have all attributes of proxy
_?weakref\.(ref|ReferenceType)\.__init__ # C implementation has incorrect signature
_?weakref\.(ref|ReferenceType)\.__call__ # C function default annotation is wrong
_?weakref\.CallableProxyType\.__getattr__ # Should have all attributes of proxy
_?weakref\.ProxyType\.__bytes__ # Doesn't actually exist
_?weakref\.ProxyType\.__getattr__ # Should have all attributes of proxy
weakref.WeakValueDictionary.setdefault # has a default value for the "default" argument, but always errors out if no value is supplied for the parameter by the user
xml.dom.minidom.StringTypes # Unnecessary re-export