Title: Allow decoders to decode Python types derived from primitives by lostmsu · Pull Request #1986 · pythonnet/pythonnet · GitHub
Open Graph Title: Allow decoders to decode Python types derived from primitives by lostmsu · Pull Request #1986 · pythonnet/pythonnet
X Title: Allow decoders to decode Python types derived from primitives by lostmsu · Pull Request #1986 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. When a Python instance needs to be converted to System.Object, and the Python type is derived from one of the primitives (e.g. numpy.float64 is derived from float), allow a custom decoder to override the default behavior (which would have been converting to System.Double). Does this close any currently open issues? It addresses the primary concern of #1957 Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change
Open Graph Description: What does this implement/fix? Explain your changes. When a Python instance needs to be converted to System.Object, and the Python type is derived from one of the primitives (e.g. numpy.float64 is d...
X Description: What does this implement/fix? Explain your changes. When a Python instance needs to be converted to System.Object, and the Python type is derived from one of the primitives (e.g. numpy.float64 is d...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1986
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:8ad73fe6-f02b-ddff-4f53-b3c0411fc661 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E5BE:B411C:78193B6:A422DB1:6973877F |
| html-safe-nonce | f7d9a1e862bb39d8aa7f483b523d589b71082c973c7e95a8c6472f9ad4953553 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUJFOkI0MTFDOjc4MTkzQjY6QTQyMkRCMTo2OTczODc3RiIsInZpc2l0b3JfaWQiOiI4NjM2MzMwMTc5MTIwMzAxOTUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9f4a1bb6e36e188460580482af7f47a7b34b86ba9d02d05ebdd8d6d5e119b00a |
| hovercard-subject-tag | pull_request:1097746868 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/pythonnet/pythonnet/pull/1986/checks |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. When a Python instance needs to be converted to System.Object, and the Python type is derived from one of the primitives (e.g. numpy.float64 is d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f0b5e2d1da32de5a0b7bcfbc5ba007c93e8e63098fba29e1200efb674aa72e66 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c96653671324f9b6d4c5f787435acf56a06087dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width