Title: More consistent handling of 'None' vs. 'none' · Issue #19300 · matplotlib/matplotlib · GitHub
Open Graph Title: More consistent handling of 'None' vs. 'none' · Issue #19300 · matplotlib/matplotlib
X Title: More consistent handling of 'None' vs. 'none' · Issue #19300 · matplotlib/matplotlib
Description: Summary The strings 'None' vs 'none' are not handled consistently: At least MarkerStyle only accepts 'None' (xref #19291 (comment)). - Maybe other places too. However, in many places we accept both 'None', 'none' (and sometimes also othe...
Open Graph Description: Summary The strings 'None' vs 'none' are not handled consistently: At least MarkerStyle only accepts 'None' (xref #19291 (comment)). - Maybe other places too. However, in many places we accept both...
X Description: Summary The strings 'None' vs 'none' are not handled consistently: At least MarkerStyle only accepts 'None' (xref #19291 (comment)). - Maybe other places too. However, in ma...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"More consistent handling of 'None' vs. 'none'","articleBody":"**Summary**\r\n\r\nThe strings `'None'` vs `'none'` are not handled consistently:\r\n\r\n- At least MarkerStyle only accepts `'None'` (xref https://github.com/matplotlib/matplotlib/pull/19291#discussion_r557735785). - Maybe other places too.\r\n- However, in many places we accept both `'None'`, `'none'` (and sometimes also other capitalizations).\r\n- Counting occurences, we have 777 'none' and 139 `'None'` in our code base.\r\n\r\n### Proposed fix\r\n\r\nAim at making the API more consistent by:\r\n\r\n- Choose one version and use it whenever possible throughout code, docs and examples.\r\n - I propose to choose `'none'` because most other named strings are lowercase. And it's a step further away from `None`, which may help making it more clear that those two are different.\r\n- Make all other places accept that version too.\r\n- For now do **not** deprecate other writings or conversions. If a way of writing is working now, there'll be lots of code out there using it. It's not worth breaking that.\r\n\r\nNote @brunobeltran You might stumble over these inconsistencies when formalizing types.","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2021-01-14T22:28:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/19300/matplotlib/issues/19300"}
| 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:82ff11b0-5ba5-038f-abc7-7797cac92fa7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBC0:1B445F:329C216:476E434:6A4F8847 |
| html-safe-nonce | 56c3543231b460d7ab4f29ab735f64e7767ccbf065a1cd9a356c102e39651650 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkMwOjFCNDQ1RjozMjlDMjE2OjQ3NkU0MzQ6NkE0Rjg4NDciLCJ2aXNpdG9yX2lkIjoiNzQ1NzE4ODg2OTg0ODQwMTk5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f146577608aaf0903645b4af70ef0dc7406d4e58274a491cb8dca025da72f3b |
| hovercard-subject-tag | issue:786386136 |
| 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/19300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/718b5a237a97e50bb264f633bb06c88682bffd84c0ff7bc75c6a3c5e3b0a9716/matplotlib/matplotlib/issues/19300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/718b5a237a97e50bb264f633bb06c88682bffd84c0ff7bc75c6a3c5e3b0a9716/matplotlib/matplotlib/issues/19300 |
| og:image:alt | Summary The strings 'None' vs 'none' are not handled consistently: At least MarkerStyle only accepts 'None' (xref #19291 (comment)). - Maybe other places too. However, in many places we accept both... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width