Title: Multiple incompatibilities for the type of self · Issue #638 · python/typeshed · GitHub
Open Graph Title: Multiple incompatibilities for the type of self · Issue #638 · python/typeshed
X Title: Multiple incompatibilities for the type of self · Issue #638 · python/typeshed
Description: 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 stdlib/3/multiproces...
Open Graph Description: 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 manu...
X Description: 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 manu...
Opengraph URL: https://github.com/python/typeshed/issues/638
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiple incompatibilities for the type of self","articleBody":"During my work ([mypy/#2381](https://github.com/python/mypy/pull/2381)) on a fix for [mypy/#2374](https://github.com/python/mypy/issues/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)\n\nPython3\n1. [stdlib/3/multiprocessing/managers.pyi:8](../blob/master/stdlib/3/multiprocessing/managers.pyi#L8): `multiprocessing.managers.BaseManager.register`\n2. [stdlib/3/ssl.pyi:222](../blob/master/stdlib/3/ssl.pyi#L222): `ssl.SSLContext.set_alpn_protocols`\n3. [stdlib/3/ssl.pyi:223](../blob/master/stdlib/3/ssl.pyi#L223): `ssl.SSLContext.set_npn_protocols`\n4. [stdlib/3/ssl.pyi:234](../blob/master/stdlib/3/ssl.pyi#L234): `ssl.SSLContext.wrap_bio`\n5. [stdlib/3/unittest.pyi:141](../blob/master/stdlib/3/unittest.pyi#L141): `unittest.TestCase.addCleanup`\n6. [stdlib/3/urllib/request.pyi:120](../blob/master/stdlib/3/urllib/request.pyi#L120): `urllib.request.HTTPPasswordMgrWithPriorAuth.update_authenticated`\n7. [stdlib/3/urllib/request.pyi:122](../blob/master/stdlib/3/urllib/request.pyi#L122): `urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated`\n8. [stdlib/3/urllib/request.pyi:194](../blob/master/stdlib/3/urllib/request.pyi#L194): `urllib.request.URLopener.retrieve`\n9. [stdlib/3/urllib/request.pyi:77](../blob/master/stdlib/3/urllib/request.pyi#L77): `urllib.request.BaseHandler.http_error_nnn`\n10. [stdlib/3/urllib/robotparser.pyi:9](../blob/master/stdlib/3/urllib/robotparser.pyi#L9): `urllib.robotparser.RobotFileParser.__init__`\n\nPython2:\n1. [stdlib/2/imp.pyi:35](../blob/master/stdlib/2/imp.pyi#L35): `imp.NullImporter.find_module`\n2. [stdlib/2/select.pyi:97](../blob/master/stdlib/2/select.pyi#L97): `select.epoll.unregister`\n3. [stdlib/2/select.pyi:98](../blob/master/stdlib/2/select.pyi#L98): `select.epoll.poll`\n4. [stdlib/2/shlex.pyi:13](../blob/master/stdlib/2/shlex.pyi#L13): `shlex.shlex.error_leader`\n5. [stdlib/2/ssl.pyi:172](../blob/master/stdlib/2/ssl.pyi#L172): `ssl.SSLContext.set_alpn_protocols`\n6. [stdlib/2/ssl.pyi:173](../blob/master/stdlib/2/ssl.pyi#L173): `ssl.SSLContext.set_npn_protocols`\n7. [stdlib/2/_struct.pyi:12](../blob/master/stdlib/2/_struct.pyi#L12): `_struct.Struct.pack_into`\n8. [stdlib/2/_symtable.pyi:39](../blob/master/stdlib/2/_symtable.pyi#L39): `_symtable.symtable.__init__`\n9. [stdlib/2/tempfile.pyi:31](../blob/master/stdlib/2/tempfile.pyi#L31): `tempfile._RandomNameSequence.normcase`\n10. [stdlib/2/tempfile.pyi:45](../blob/master/stdlib/2/tempfile.pyi#L45): `tempfile._TemporaryFileWrapper.unlink`\n11. [The third overload of `file.__init__`](../blob/master/stdlib/2/__builtin__.pyi#L915):\n\n``` Python\n def __init__(file: int, mode: str = 'r', buffering: int = ...) -> None: ...\n```\n\nAlso, tons of `__builtin__` mismatches (possibly spurious).\n\nThird party:\n1. [third_party/3/pkg_resources.pyi:228](../blob/master/third_party/3/pkg_resources.pyi#L228): `IMetadataProvider.*`\n2. [third_party/2/pymssql.pyi:21](../blob/master/third_party/2/pymssql.pyi#L21): `pymssql.Cursor.callproc`\n","author":{"url":"https://github.com/elazarg","@type":"Person","name":"elazarg"},"datePublished":"2016-10-29T23:01:44Z","url":"https://github.com/python/typeshed/issues/638"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:14cd47e1-f362-5bec-c35f-f272e7102fde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E066:106F5D:25B07:33A14:6B0019E7 |
| html-safe-nonce | 11ed309e4583bef6648ff2dfe220c6efddd503fb3e72b534191b5ac22d4bf3e9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDY2OjEwNkY1RDoyNUIwNzozM0ExNDo2QjAwMTlFNyIsInZpc2l0b3JfaWQiOiI3ODM2MTY5MTM3OTkzODc2MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8bcd4151f1c5468e4e1922f568a07cacd18c82d87cbebad33b88cc55b385e2fa |
| hovercard-subject-tag | issue:186106054 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/638/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f37fbd714b499c0dec89ae565e6f0e05666d0dbebe4f2e7c70bfb2c15881874/python/typeshed/issues/638 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f37fbd714b499c0dec89ae565e6f0e05666d0dbebe4f2e7c70bfb2c15881874/python/typeshed/issues/638 |
| og:image:alt | 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 manu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | elazarg |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width