Title: Most warnings calls do not set the stacklevel · Issue #10643 · matplotlib/matplotlib · GitHub
Open Graph Title: Most warnings calls do not set the stacklevel · Issue #10643 · matplotlib/matplotlib
X Title: Most warnings calls do not set the stacklevel · Issue #10643 · matplotlib/matplotlib
Description: Bug report Bug summary Calls to warnings.warn should usually set stacklevel=2 (or higher) so that the source line that gets displayed in the warnings message is the line triggering the code, not the line in mpl that has the warnings call...
Open Graph Description: Bug report Bug summary Calls to warnings.warn should usually set stacklevel=2 (or higher) so that the source line that gets displayed in the warnings message is the line triggering the code, not th...
X Description: Bug report Bug summary Calls to warnings.warn should usually set stacklevel=2 (or higher) so that the source line that gets displayed in the warnings message is the line triggering the code, not th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10643
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Most warnings calls do not set the stacklevel","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nCalls to `warnings.warn` should usually set `stacklevel=2` (or higher) so that the source line that gets displayed in the warnings message is the line triggering the code, not the line in mpl that has the warnings call (which is basically redundant with the warnings message itself). Right now most of the calls do not include the stacklevel argument.","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2018-03-02T01:01:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/10643/matplotlib/issues/10643"}
| 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:503819d6-9e33-f47c-3b02-80abdd7c5311 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BF0:15F1A6:83FEFC:AE4F22:6A530E06 |
| html-safe-nonce | 5c7f3c77945ac25bc3f39e1b526941fc3dd93ce40845d3d071f9e28243532a19 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkYwOjE1RjFBNjo4M0ZFRkM6QUU0RjIyOjZBNTMwRTA2IiwidmlzaXRvcl9pZCI6IjEzODM1MzY1NDQ0MDg1NzA5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c33667f779dad8c0d26ec172c021882db5afa39d76d5ccab80ec2b65160e61fe |
| hovercard-subject-tag | issue:301616556 |
| 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/matplotlib/matplotlib/10643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2c8f42a1dbf443833db736afcb7d129360453a5d14a12c3cb754818e5ee8d30/matplotlib/matplotlib/issues/10643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2c8f42a1dbf443833db736afcb7d129360453a5d14a12c3cb754818e5ee8d30/matplotlib/matplotlib/issues/10643 |
| og:image:alt | Bug report Bug summary Calls to warnings.warn should usually set stacklevel=2 (or higher) so that the source line that gets displayed in the warnings message is the line triggering the code, not th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width