Title: Classes should not inherit from Any · Issue #1446 · python/typeshed · GitHub
Open Graph Title: Classes should not inherit from Any · Issue #1446 · python/typeshed
X Title: Classes should not inherit from Any · Issue #1446 · python/typeshed
Description: Several classes in typeshed inherit from Any, and should not. $ ag "class .*\(Any\)" stdlib\3\multiprocessing\context.pyi 118: class ForkProcess(Any): # type: ignore 124: class SpawnProcess(Any): # type: ignore 130: class ForkServerProce...
Open Graph Description: Several classes in typeshed inherit from Any, and should not. $ ag "class .*\(Any\)" stdlib\3\multiprocessing\context.pyi 118: class ForkProcess(Any): # type: ignore 124: class SpawnProcess(Any): #...
X Description: Several classes in typeshed inherit from Any, and should not. $ ag "class .*\(Any\)" stdlib\3\multiprocessing\context.pyi 118: class ForkProcess(Any): # type: ignore 124: class SpawnProce...
Opengraph URL: https://github.com/python/typeshed/issues/1446
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Classes should not inherit from Any","articleBody":"Several classes in typeshed inherit from `Any`, and should not.\r\n\r\n```\r\n$ ag \"class .*\\(Any\\)\"\r\nstdlib\\3\\multiprocessing\\context.pyi\r\n118: class ForkProcess(Any): # type: ignore\r\n124: class SpawnProcess(Any): # type: ignore\r\n130: class ForkServerProcess(Any): # type: ignore\r\n148: class SpawnProcess(Any): # type: ignore\r\n\r\nstdlib\\3\\types.pyi\r\n81:class SimpleNamespace(Any): ... # type: ignore\r\n\r\nstdlib\\3\\unittest\\mock.pyi\r\n34: class NonCallableMock(Any):\r\n\r\ntests\\pytype_blacklist.txt\r\n11:# Because of 'class ForkProcess(Any): # type: ignore'\r\n\r\nthird_party\\3\\jwt\\algorithms.pyi\r\n3:class Algorithm(Any): ... # type: ignore\r\n```\r\n\r\nAs can be seen, all but one of these are type-ignore'd and thus not picked up by mypy.\r\n\r\nThe multiprocessing classes have `# TODO: type should be BaseProcess once a stub in multiprocessing.process exists`, so that should be okay to change, as that module is there. \r\n\r\nThe `types.pyi` `SimpleNameSpace` needed my `__setattr__` implementation.\r\n\r\nApparently the same for `NonCallableMock`\r\n\r\nJWT stubs just seem very incomplete.\r\n\r\n\r\n","author":{"url":"https://github.com/emmatyping","@type":"Person","name":"emmatyping"},"datePublished":"2017-06-30T22:46:09Z","url":"https://github.com/python/typeshed/issues/1446"}
| 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:9c74a046-e296-ce91-bf0d-2ef37ae56aae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81B4:DD1C:1C06157:25D534E:6B0007BF |
| html-safe-nonce | b7f67198d2ecfaf848ac467fed4680d7929db6bf0ccfc1ee4107bc4ec208e6bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUI0OkREMUM6MUMwNjE1NzoyNUQ1MzRFOjZCMDAwN0JGIiwidmlzaXRvcl9pZCI6Ijg5NDI3MDkzMzQ3NDQyMzgwMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cac01c6664b7bf6acbbc307a774f0d3763f8776cdc2303f467e7e4e5070faa59 |
| hovercard-subject-tag | issue:239904951 |
| 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/1446/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f607fd38e9a2b17facf5d5a7459057585525be63b582bfbcee4aeafb39a5b4b/python/typeshed/issues/1446 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f607fd38e9a2b17facf5d5a7459057585525be63b582bfbcee4aeafb39a5b4b/python/typeshed/issues/1446 |
| og:image:alt | Several classes in typeshed inherit from Any, and should not. $ ag "class .*\(Any\)" stdlib\3\multiprocessing\context.pyi 118: class ForkProcess(Any): # type: ignore 124: class SpawnProcess(Any): #... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emmatyping |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width