Title: Add type annotation for LocationEvent.modifiers by NMertsch · Pull Request #30841 · matplotlib/matplotlib · GitHub
Open Graph Title: Add type annotation for LocationEvent.modifiers by NMertsch · Pull Request #30841 · matplotlib/matplotlib
X Title: Add type annotation for LocationEvent.modifiers by NMertsch · Pull Request #30841 · matplotlib/matplotlib
Description: PR summary Add missing type annotation for LocationEvent.modifiers. This attribute exists. This attribute is already documented. This attribute is always a frozenset[str]. Current code: backend_bases.py class LocationEvent(Event): """ ... Attributes ---------- ... modifiers : frozenset The keyboard modifiers currently being pressed (except for KeyEvent). """ ... def __init__(self, ..., *, modifiers=None): ... self.modifiers = frozenset(modifiers if modifiers is not None else []) ... backend_bases.pyi class LocationEvent(Event): ... # some attributes, but not `modifiers` def __init__(self, ..., *, modifiers: Iterable[str] | None = ...) -> None: ... closes #30840 PR checklist "closes #0000" is in the body of the PR description to link the related issue [N/A] new and changed code is tested [N/A] Plotting related features are demonstrated in an example [N/A] New Features and API Changes are noted with a directive and release note [N/A] Documentation complies with general and docstring guidelines
Open Graph Description: PR summary Add missing type annotation for LocationEvent.modifiers. This attribute exists. This attribute is already documented. This attribute is always a frozenset[str]. Current code: backend_b...
X Description: PR summary Add missing type annotation for LocationEvent.modifiers. This attribute exists. This attribute is already documented. This attribute is always a frozenset[str]. Current code: backend_b...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/30841
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2b1d1229-f12e-59d8-62c2-b59e0c4a1be5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9E82:497D6:458447:5D614F:6A51C5DE |
| html-safe-nonce | 11a7ed8414be10916ded4403446fc4fc09eabf816872b92c96a5e8505aacb04a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTgyOjQ5N0Q2OjQ1ODQ0Nzo1RDYxNEY6NkE1MUM1REUiLCJ2aXNpdG9yX2lkIjoiMjk3NjMyMTQ5NTA1ODQ2NjI3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70574c1a7bea133bfb7fb327c72b6f0e09d0b32febc341ef065fd2485ff007e3 |
| hovercard-subject-tag | pull_request:3094349323 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/30841/files |
| twitter:image | https://avatars.githubusercontent.com/u/49114330?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/49114330?s=400&v=4 |
| og:image:alt | PR summary Add missing type annotation for LocationEvent.modifiers. This attribute exists. This attribute is already documented. This attribute is always a frozenset[str]. Current code: backend_b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width