Title: TypeError when calling a method with an enum argument · Issue #935 · pythonnet/pythonnet · GitHub
Open Graph Title: TypeError when calling a method with an enum argument · Issue #935 · pythonnet/pythonnet
X Title: TypeError when calling a method with an enum argument · Issue #935 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.4.0 Python version: 3.6 Operating System: Windows10 Details calling a method that uses C# enum as an argument with the enum fails with TypeError: No method matches given arguments for XXX The enum comes i...
Open Graph Description: Environment Pythonnet version: 2.4.0 Python version: 3.6 Operating System: Windows10 Details calling a method that uses C# enum as an argument with the enum fails with TypeError: No method matches ...
X Description: Environment Pythonnet version: 2.4.0 Python version: 3.6 Operating System: Windows10 Details calling a method that uses C# enum as an argument with the enum fails with TypeError: No method matches ...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/935
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError when calling a method with an enum argument","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.4.0\r\n- Python version: 3.6\r\n- Operating System: Windows10\r\n\r\n### Details\r\n\r\n- calling a method that uses C# enum as an argument with the enum fails with TypeError: No method matches given arguments for XXX\r\n\r\nThe enum comes in Python as an int, and since the method signature is not int, it fails. \r\n\r\nI cannot see how to force the typecast, or whether I could somehow force the method call directly (__overloads__ lists the method, but I can't figure out whether I can call directly).\r\n\r\nSearching google did not return anything recent, although some older comments (2017/18 IIRC) indicated there was a fix for this?\r\n","author":{"url":"https://github.com/vladt3","@type":"Person","name":"vladt3"},"datePublished":"2019-08-06T13:32:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/935/pythonnet/issues/935"}
| 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:8f776fb2-fa17-9c24-0c64-55514ab042e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B82:A2119:1D9F358:280F9EB:69707EB2 |
| html-safe-nonce | 3d125d76e31ad311b1ea7be3dc3c14a3e02665514b6c9b591ec4a9a739eddd11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjgyOkEyMTE5OjFEOUYzNTg6MjgwRjlFQjo2OTcwN0VCMiIsInZpc2l0b3JfaWQiOiIyNDUzNjc4MzU3OTk2NDA0NDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7ad1c874a1929e93115c6b39d1d406056e19abaa7aa12ccf70d37bdc81a9f4c4 |
| hovercard-subject-tag | issue:477384014 |
| 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/pythonnet/pythonnet/935/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec187b764816a6aae1db521dbb1156c44d14bcb0677bef1b5d1473bb500b615f/pythonnet/pythonnet/issues/935 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec187b764816a6aae1db521dbb1156c44d14bcb0677bef1b5d1473bb500b615f/pythonnet/pythonnet/issues/935 |
| og:image:alt | Environment Pythonnet version: 2.4.0 Python version: 3.6 Operating System: Windows10 Details calling a method that uses C# enum as an argument with the enum fails with TypeError: No method matches ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vladt3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width