Title: configparser.SectionProxy.get* methods aren't correctly typed · Issue #1543 · python/typeshed · GitHub
Open Graph Title: configparser.SectionProxy.get* methods aren't correctly typed · Issue #1543 · python/typeshed
X Title: configparser.SectionProxy.get* methods aren't correctly typed · Issue #1543 · python/typeshed
Description: On instantiation, configparser.SectionProxy takes as an argument the parser that it's a section of and uses setattr to populate itself with partially applied converters (i.e. methods that start with get) that the parser it is passed has....
Open Graph Description: On instantiation, configparser.SectionProxy takes as an argument the parser that it's a section of and uses setattr to populate itself with partially applied converters (i.e. methods that start wit...
X Description: On instantiation, configparser.SectionProxy takes as an argument the parser that it's a section of and uses setattr to populate itself with partially applied converters (i.e. methods that start...
Opengraph URL: https://github.com/python/typeshed/issues/1543
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"configparser.SectionProxy.get* methods aren't correctly typed","articleBody":"On instantiation, `configparser.SectionProxy` takes as an argument the parser that it's a section of and uses `setattr` to populate itself with partially applied converters (i.e. methods that start with `get`) that the parser it is passed has.\r\n\r\nCurrently, this is stubbed as:\r\n\r\n```py\r\nclass SectionProxy(MutableMapping[str, str]):\r\n def __init__(self, parser: RawConfigParser, name: str) -> None: ...\r\n\r\n \u003csnip>\r\n\r\n # SectionProxy can have arbitrary attributes when custon converters are used\r\n def __getattr__(self, key: str) -> Callable[..., Any]: ...\r\n```\r\n\r\nwhich means that `ConfigParser()['section'].getboolean('key')` type checks as `Any`, whereas it should in fact be `bool`.","author":{"url":"https://github.com/OddBloke","@type":"Person","name":"OddBloke"},"datePublished":"2017-08-12T18:42:03Z","url":"https://github.com/python/typeshed/issues/1543"}
| 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:42a911bb-d6f9-25fb-3bdd-263691991ab0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B30C:2E9DBB:1F0F04B:2A4C95F:6B001AAA |
| html-safe-nonce | 2e736d91e657996bb8b484816ec413ba58f06fa021dc81d25f98fd6e8ac02265 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzBDOjJFOURCQjoxRjBGMDRCOjJBNEM5NUY6NkIwMDFBQUEiLCJ2aXNpdG9yX2lkIjoiNDQxODk1MzEzMzc5NTg0MjczMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4cba79e9a1dae52b577c4245cc81adaefe86a53e6ff01f5240b108842d5bf41 |
| hovercard-subject-tag | issue:249828520 |
| 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/1543/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cca6d7592e84e2f8526aca6718f73d0959e72509a8132b307612845e5a566b39/python/typeshed/issues/1543 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cca6d7592e84e2f8526aca6718f73d0959e72509a8132b307612845e5a566b39/python/typeshed/issues/1543 |
| og:image:alt | On instantiation, configparser.SectionProxy takes as an argument the parser that it's a section of and uses setattr to populate itself with partially applied converters (i.e. methods that start wit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OddBloke |
| 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