Title: Python 3 HTTPConnection stubs missing class variables · Issue #1901 · python/typeshed · GitHub
Open Graph Title: Python 3 HTTPConnection stubs missing class variables · Issue #1901 · python/typeshed
X Title: Python 3 HTTPConnection stubs missing class variables · Issue #1901 · python/typeshed
Description: The python 2 stubs have the class variables: typeshed/stdlib/2/httplib.pyi Lines 40 to 48 in 67e38b6 class HTTPConnection: response_class = ... # type: Any default_port = ... # type: Any auto_open = ... # type: Any debuglevel = ... # typ...
Open Graph Description: The python 2 stubs have the class variables: typeshed/stdlib/2/httplib.pyi Lines 40 to 48 in 67e38b6 class HTTPConnection: response_class = ... # type: Any default_port = ... # type: Any auto_open ...
X Description: The python 2 stubs have the class variables: typeshed/stdlib/2/httplib.pyi Lines 40 to 48 in 67e38b6 class HTTPConnection: response_class = ... # type: Any default_port = ... # type: Any auto_open ...
Opengraph URL: https://github.com/python/typeshed/issues/1901
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python 3 HTTPConnection stubs missing class variables","articleBody":"The python 2 stubs have the class variables:\r\n\r\nhttps://github.com/python/typeshed/blob/67e38b68060c9f53b0c017a4e66a1f07673c5741/stdlib/2/httplib.pyi#L40-L48\r\n\r\nbut the python 3 stubs do not:\r\n\r\nhttps://github.com/python/typeshed/blob/f6b60cb3ea9ce3e7fdfcc317d9b5bbcf553c289e/stdlib/3/http/client.pyi#L127-L141\r\n\r\nThis causes a mypy error with the following:\r\n\r\n```\r\nerror: \"Type[HTTPConnection]\" has no attribute \"debuglevel\"\r\n```\r\n\r\nIf all that needs to be done is to add the hints for those class variables, then I don't mind making a PR to do so.\r\n\r\nPlease let me know if I should make the PR or if I have the error wrong and the problem is somewhere else.","author":{"url":"https://github.com/scottbelden","@type":"Person","name":"scottbelden"},"datePublished":"2018-02-19T18:20:51Z","url":"https://github.com/python/typeshed/issues/1901"}
| 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:08ec221b-f481-bf15-72ae-78fc5b875346 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92B0:D33AC:BAE43A:F9B1B9:6B004D26 |
| html-safe-nonce | 3d624c2df0573438f82880d8d5915baa09253704c3ec21743f1fc314f1883253 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkIwOkQzM0FDOkJBRTQzQTpGOUIxQjk6NkIwMDREMjYiLCJ2aXNpdG9yX2lkIjoiMzUxNzY0NzEyOTk2OTQ0NjE4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e7352b64e5dbad2a90079c99248c0a0f3b27317d805f654635f4bf41e133ada |
| hovercard-subject-tag | issue:298365492 |
| 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/1901/issue_layout |
| twitter:image | https://opengraph.githubassets.com/62fc44a9f4260473075c2d04c19a445541854d6cd0a8d6e693d22ebc3d0702b7/python/typeshed/issues/1901 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/62fc44a9f4260473075c2d04c19a445541854d6cd0a8d6e693d22ebc3d0702b7/python/typeshed/issues/1901 |
| og:image:alt | The python 2 stubs have the class variables: typeshed/stdlib/2/httplib.pyi Lines 40 to 48 in 67e38b6 class HTTPConnection: response_class = ... # type: Any default_port = ... # type: Any auto_open ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scottbelden |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width