Title: feat(commons): data model type annotations by kieran-ryan · Pull Request #892 · allure-framework/allure-python · GitHub
Open Graph Title: feat(commons): data model type annotations by kieran-ryan · Pull Request #892 · allure-framework/allure-python
X Title: feat(commons): data model type annotations by kieran-ryan · Pull Request #892 · allure-framework/allure-python
Description: Context Establish type annotations on common data models towards #878. Corrected TestResult usage to initialise with required UUID Updated ParameterMode to a string-based enum of (str, Enum) from Enum Updated ParameterMode.DEFAULT to a "default" string from None - matching allure2 Updated ALLURE_UNIQUE_LABELS to use LabelType values This enables static type checking and rich language services through language servers. The ty Visual Studio Code extension will only recognise attrs attributes once type annotations are provided for instance - see attrs documentation on type annotations. Withholding removing None from required fields - being a breaking change for any improper initialisation - reserving for more fundamental model updates. Similarly withholding standardising all types to string-based enums. Screenshots Without annotations
Open Graph Description: Context Establish type annotations on common data models towards #878. Corrected TestResult usage to initialise with required UUID Updated ParameterMode to a string-based enum of (str, Enum) from ...
X Description: Context Establish type annotations on common data models towards #878. Corrected TestResult usage to initialise with required UUID Updated ParameterMode to a string-based enum of (str, Enum) from ...
Opengraph URL: https://github.com/allure-framework/allure-python/pull/892
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:211ff6e2-e968-404b-160a-3bb24cf9d65c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AED0:3F6966:F4DCCA:1587B50:696FC172 |
| html-safe-nonce | 46bff779f208e6ceac6609e3ece4c6e833fec0a803145857d8f0e9cee9d4750e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUQwOjNGNjk2NjpGNERDQ0E6MTU4N0I1MDo2OTZGQzE3MiIsInZpc2l0b3JfaWQiOiIzNjY1MzQzNjM3ODQ0MTE1ODI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 51a94a115476d404d1d38ba5be362e2c2cd800934739bbec099a9dd03b6ae8dc |
| hovercard-subject-tag | pull_request:3141097726 |
| 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/allure-framework/allure-python/pull/892/files |
| twitter:image | https://avatars.githubusercontent.com/u/5904340?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5904340?s=400&v=4 |
| og:image:alt | Context Establish type annotations on common data models towards #878. Corrected TestResult usage to initialise with required UUID Updated ParameterMode to a string-based enum of (str, Enum) from ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 330ca0f04ee8ecef1da04306a0dd49293f64679ee9a4bd5eaf2e1272bfdcf145 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/allure-framework/allure-python git https://github.com/allure-framework/allure-python.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 79346720 |
| octolytics-dimension-repository_nwo | allure-framework/allure-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79346720 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-python |
| 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 | 816ad575e27a390de2e2089ebe75261d12de9b37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width