Closed elazarg closed 7 years ago
During my work (mypy/#2381) on a fix for mypy/#2374, I have encountered many bad signatures - mostly missing the self parameter - in the following methods (only a selection of them was chekced manually by me)
self
Python3
multiprocessing.managers.BaseManager.register
ssl.SSLContext.set_alpn_protocols
ssl.SSLContext.set_npn_protocols
ssl.SSLContext.wrap_bio
unittest.TestCase.addCleanup
urllib.request.HTTPPasswordMgrWithPriorAuth.update_authenticated
urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated
urllib.request.URLopener.retrieve
urllib.request.BaseHandler.http_error_nnn
urllib.robotparser.RobotFileParser.__init__
Python2:
imp.NullImporter.find_module
select.epoll.unregister
select.epoll.poll
shlex.shlex.error_leader
_struct.Struct.pack_into
_symtable.symtable.__init__
tempfile._RandomNameSequence.normcase
tempfile._TemporaryFileWrapper.unlink
file.__init__
def __init__(file: int, mode: str = 'r', buffering: int = ...) -> None: ...
Also, tons of __builtin__ mismatches (possibly spurious).
__builtin__
Third party:
IMetadataProvider.*
pymssql.Cursor.callproc
Eew! So good to catch these. Can you submit fixes? One PR per subdirectory would be fone.
During my work (mypy/#2381) on a fix for mypy/#2374, I have encountered many bad signatures - mostly missing the
self
parameter - in the following methods (only a selection of them was chekced manually by me)Python3
multiprocessing.managers.BaseManager.register
ssl.SSLContext.set_alpn_protocols
ssl.SSLContext.set_npn_protocols
ssl.SSLContext.wrap_bio
unittest.TestCase.addCleanup
urllib.request.HTTPPasswordMgrWithPriorAuth.update_authenticated
urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated
urllib.request.URLopener.retrieve
urllib.request.BaseHandler.http_error_nnn
urllib.robotparser.RobotFileParser.__init__
Python2:
imp.NullImporter.find_module
select.epoll.unregister
select.epoll.poll
shlex.shlex.error_leader
ssl.SSLContext.set_alpn_protocols
ssl.SSLContext.set_npn_protocols
_struct.Struct.pack_into
_symtable.symtable.__init__
tempfile._RandomNameSequence.normcase
tempfile._TemporaryFileWrapper.unlink
file.__init__
:Also, tons of
__builtin__
mismatches (possibly spurious).Third party:
IMetadataProvider.*
pymssql.Cursor.callproc