Title: Allow conversion of number to enum type when underlying type is assignable by slide · Pull Request #1179 · pythonnet/pythonnet · GitHub
Open Graph Title: Allow conversion of number to enum type when underlying type is assignable by slide · Pull Request #1179 · pythonnet/pythonnet
X Title: Allow conversion of number to enum type when underlying type is assignable by slide · Pull Request #1179 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. In .NET you can do the following: enum FooEnum { One = 1, Three = 3, Four = 4, } FooEnum x = (FooEnum)2; This patch allows this from Python code as well. Does this close any currently open issues? Possibly #935 Any other comments? I would definitely like eyes on this, I am possibly missing something :-) Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change If an enhancement PR, please create docs and at best an example Add yourself to AUTHORS Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. In .NET you can do the following: enum FooEnum { One = 1, Three = 3, Four = 4, } FooEnum x = (FooEnum)2; This patch allows this fro...
X Description: What does this implement/fix? Explain your changes. In .NET you can do the following: enum FooEnum { One = 1, Three = 3, Four = 4, } FooEnum x = (FooEnum)2; This patch allows this fro...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1179
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a86f06e2-23ef-6ece-87c5-b229b5ed95f5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DA3C:134DE9:23C7498:31F2A8B:6970F31F |
| html-safe-nonce | 3fc935509e3511fcd7b2bdc854cec1252071ffc10928820b105bd547d7036b6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTNDOjEzNERFOToyM0M3NDk4OjMxRjJBOEI6Njk3MEYzMUYiLCJ2aXNpdG9yX2lkIjoiMTg3OTY2MDQ1ODUzNjkyMzkzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 042f95539eac207e3d0695cac6c8c59f37320f260710004ddf4f48d32c851f22 |
| hovercard-subject-tag | pull_request:444910509 |
| 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/pythonnet/pythonnet/pull/1179/files |
| twitter:image | https://avatars.githubusercontent.com/u/55871?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/55871?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. In .NET you can do the following: enum FooEnum { One = 1, Three = 3, Four = 4, } FooEnum x = (FooEnum)2; This patch allows this fro... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b6ca3cb96fa07d8a62b95d681f9dc8fffb49a43f4fea2a5bcac6d8f5107cbf4e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d2448578278810c7bf94faa67651ef5adb1abfde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width