Title: Fix Enum classes and their inheritance by roaffix · Pull Request #243 · arrayfire/arrayfire-python · GitHub
Open Graph Title: Fix Enum classes and their inheritance by roaffix · Pull Request #243 · arrayfire/arrayfire-python
X Title: Fix Enum classes and their inheritance by roaffix · Pull Request #243 · arrayfire/arrayfire-python
Description: Remove the check for enum import. Motivation: check for enum's import error is unnecessary on modern python versions because its built-in library is available with a basic python build version. It is pointless to cover very-very-very situational python builds that could not contain enum in it. Remove the C++ style formatting for constants declaration. Motivation: FYI, @syurkevi : https://www.python.org/dev/peps/pep-0008/#other-recommendations. Especially example before link that is under "More than one space around an assignment (or other) operator to align it with another" and highlighted "never use more than one space" 🖕 😎 Remove wrap for Enum constants with _Enum_Type function. Motivation: There is no point to use such a method like _Enum_Type that returns the arg as it is passed into it. to_str is moved to the "library" module to avoid circular import with the "util" module. Note: This change does not break the public API because it is still declared in __init__.
Open Graph Description: Remove the check for enum import. Motivation: check for enum's import error is unnecessary on modern python versions because its built-in library is available with a basic python build version....
X Description: Remove the check for enum import. Motivation: check for enum's import error is unnecessary on modern python versions because its built-in library is available with a basic python build vers...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/pull/243
X: @github
Domain: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:1166e6bd-aae5-8f39-188a-e3d1bf0b9b4a |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B7E8:1A2A10:7B9F9E:A200F1:696B4D86 |
| html-safe-nonce | 69efe4bf63f1191e73167545cfd78e569497d6ee7c289df03398ccbd0d3cf163 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0U4OjFBMkExMDo3QjlGOUU6QTIwMEYxOjY5NkI0RDg2IiwidmlzaXRvcl9pZCI6IjgzNjQzMzg0NjAxMzM5MDM3NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fe6819aa5435a9aab5eea32c1105debdfbcbfcb2b3783a64ee0ecbd2f62d0110 |
| hovercard-subject-tag | pull_request:521051991 |
| 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/arrayfire/arrayfire-python/pull/243/checks |
| twitter:image | https://avatars.githubusercontent.com/u/8783663?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8783663?s=400&v=4 |
| og:image:alt | Remove the check for enum import. Motivation: check for enum's import error is unnecessary on modern python versions because its built-in library is available with a basic python build version.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire-python git https://github.com/arrayfire/arrayfire-python.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 37599258 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37599258 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire-python |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width