Title: Fix #303: Fix Version.__init__ method by tomschr · Pull Request #317 · python-semver/python-semver · GitHub
Open Graph Title: Fix #303: Fix Version.__init__ method by tomschr · Pull Request #317 · python-semver/python-semver
X Title: Fix #303: Fix Version.__init__ method by tomschr · Pull Request #317 · python-semver/python-semver
Description: This PR fixes #303 and contains the following changes: Allow different variants to call Version Adapt the documentation and README Adapt and amend tests Add changelog entries TODO: Fix typing errors. @tlaferriere Thomas, could you have a look please? Especially the types, they seem to be a bit tricky. 😉 I deviated a bit from the original signature and used the major, minor, etc. keyword arguments instead of kwargs: def __init__( self, *args: Tuple, # type needs to be fixed probably major: SupportsInt = 0, minor: SupportsInt = 0, patch: SupportsInt = 0, prerelease: StringOrInt = None, build: StringOrInt = None, ): The tests are okay, but mypy complains.
Open Graph Description: This PR fixes #303 and contains the following changes: Allow different variants to call Version Adapt the documentation and README Adapt and amend tests Add changelog entries TODO: Fix typing er...
X Description: This PR fixes #303 and contains the following changes: Allow different variants to call Version Adapt the documentation and README Adapt and amend tests Add changelog entries TODO: Fix typing er...
Opengraph URL: https://github.com/python-semver/python-semver/pull/317
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:1e7a0088-4a1b-953b-ec7a-4ba858cbafa5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A53C:239A7F:5D6F3A0:7EE62A8:69733E78 |
| html-safe-nonce | 26a074e691300f9eba1dce37b41b89fd4073f5926dc69415cad4f50a02ea8ac5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTNDOjIzOUE3Rjo1RDZGM0EwOjdFRTYyQTg6Njk3MzNFNzgiLCJ2aXNpdG9yX2lkIjoiNTM4MTUzNjk0NzgzNjc2Mzc2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d7161422dd4190b422a0c30ca4f4f5c38a616a63840cb05760405416c0a72f66 |
| hovercard-subject-tag | pull_request:516883307 |
| 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/python-semver/python-semver/pull/317/files |
| twitter:image | https://avatars.githubusercontent.com/u/1312925?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1312925?s=400&v=4 |
| og:image:alt | This PR fixes #303 and contains the following changes: Allow different variants to call Version Adapt the documentation and README Adapt and amend tests Add changelog entries TODO: Fix typing er... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-semver/python-semver git https://github.com/python-semver/python-semver.git |
| octolytics-dimension-user_id | 57228994 |
| octolytics-dimension-user_login | python-semver |
| octolytics-dimension-repository_id | 3375726 |
| octolytics-dimension-repository_nwo | python-semver/python-semver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3375726 |
| octolytics-dimension-repository_network_root_nwo | python-semver/python-semver |
| 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 | 75e56b01124e79ebbaa7864231f25e58fc1b5f25 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width