Title: FIX: Remove type checking for strings in '_validate_linestyle' by afvincent · Pull Request #8165 · matplotlib/matplotlib · GitHub
Open Graph Title: FIX: Remove type checking for strings in '_validate_linestyle' by afvincent · Pull Request #8165 · matplotlib/matplotlib
X Title: FIX: Remove type checking for strings in '_validate_linestyle' by afvincent · Pull Request #8165 · matplotlib/matplotlib
Description: This PR fixes #8145 . The type checking of strings was raising errors when non Unicode strings were passed as arguments to _validate_linestyle (that was introduced in #8040), which can easily occur under Python 2.7 for example. This PR replaces this type checking with a simple try: … except: … approach. It also adds a couple of test cases to explicitly test the situation of non Unicode arguments.
Open Graph Description: This PR fixes #8145 . The type checking of strings was raising errors when non Unicode strings were passed as arguments to _validate_linestyle (that was introduced in #8040), which can easily occur...
X Description: This PR fixes #8145 . The type checking of strings was raising errors when non Unicode strings were passed as arguments to _validate_linestyle (that was introduced in #8040), which can easily occur...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/8165
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0daf1579-7c9c-e843-2898-a600530f67c8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A198:35F086:C9B9DD:1242284:6A54A851 |
| html-safe-nonce | 647ca9ed077e2394bf85b4df8e1927392b6fc1590d257c92147901166b1869eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTk4OjM1RjA4NjpDOUI5REQ6MTI0MjI4NDo2QTU0QTg1MSIsInZpc2l0b3JfaWQiOiI5MTc4MTEyOTc4OTQzNTE4ODAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f0e3481fbd5f2a5d06a26f55bf934e3a05acf94b3ca15cc1491b715dec12eaee |
| hovercard-subject-tag | pull_request:108162882 |
| 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/8165/files |
| twitter:image | https://avatars.githubusercontent.com/u/17270724?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/17270724?s=400&v=4 |
| og:image:alt | This PR fixes #8145 . The type checking of strings was raising errors when non Unicode strings were passed as arguments to _validate_linestyle (that was introduced in #8040), which can easily occur... |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width