Title: Proof of concept for deprecation of global non-callables. by anntzer · Pull Request #10735 · matplotlib/matplotlib · GitHub
Open Graph Title: Proof of concept for deprecation of global non-callables. by anntzer · Pull Request #10735 · matplotlib/matplotlib
X Title: Proof of concept for deprecation of global non-callables. by anntzer · Pull Request #10735 · matplotlib/matplotlib
Description: Triggered by the recent discussion on deprecating matplotlib.verbose. This ensures that a deprecation warning is triggered just by trying to access matplotlib.verbose (or importing it). The implementation idea is based on njsmith's metamodule, but without the hacks needed to support Py<3.5. Py3.7+ will provide instance-__getattr__ on all classes by default, making the _DeprecatorModuleType patching unnecessary (but the warning emitter would still need to be implemented, so there is actually fairly limited improvement from that). Just putting this here to show that it can be done... attn @jklymak PR Summary PR Checklist Has Pytest style unit tests Code is PEP 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: Triggered by the recent discussion on deprecating matplotlib.verbose. This ensures that a deprecation warning is triggered just by trying to access matplotlib.verbose (or importing it). The implem...
X Description: Triggered by the recent discussion on deprecating matplotlib.verbose. This ensures that a deprecation warning is triggered just by trying to access matplotlib.verbose (or importing it). The implem...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/10735
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2473e298-39c7-0444-c8a7-a7f55b001aaf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 90A6:1DB7B5:39D009:4D3D5B:6A5190C5 |
| html-safe-nonce | b2113eea7d4e117dbcc7e424cff4bb56f7ae7307d0efb42a77e7fccec21f65d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEE2OjFEQjdCNTozOUQwMDk6NEQzRDVCOjZBNTE5MEM1IiwidmlzaXRvcl9pZCI6IjI2ODA0NDM0MzE0MjAwMDY1OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 705ba8b43487bdcf13aa1916efb10dcc70cae2d66355e6fcbb0d8983250a6094 |
| hovercard-subject-tag | pull_request:173939648 |
| 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/10735/files |
| twitter:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| og:image:alt | Triggered by the recent discussion on deprecating matplotlib.verbose. This ensures that a deprecation warning is triggered just by trying to access matplotlib.verbose (or importing it). The implem... |
| 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