Title: running `doctest` failes · Issue #416 · python-validators/validators · GitHub
Open Graph Title: running `doctest` failes · Issue #416 · python-validators/validators
X Title: running `doctest` failes · Issue #416 · python-validators/validators
Description: running pytest --doctest-modules shows that the code snippets within the docstrings are wrong. _______________________ [doctest] validators.uuid.uuid ________________________ 014 Return whether or not given value is a valid UUID-v4 strin...
Open Graph Description: running pytest --doctest-modules shows that the code snippets within the docstrings are wrong. _______________________ [doctest] validators.uuid.uuid ________________________ 014 Return whether or ...
X Description: running pytest --doctest-modules shows that the code snippets within the docstrings are wrong. _______________________ [doctest] validators.uuid.uuid ________________________ 014 Return whether or ...
Opengraph URL: https://github.com/python-validators/validators/issues/416
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"running `doctest` failes","articleBody":"running `pytest --doctest-modules` shows that the code snippets within the docstrings are wrong.\n\n\n```\n_______________________ [doctest] validators.uuid.uuid ________________________\n014 Return whether or not given value is a valid UUID-v4 string.\n015 \n016 This validator is based on [WTForms UUID validator][1].\n017 \n018 [1]: https://github.com/wtforms/wtforms/blob/master/src/wtforms/validators.py#L539\n019 \n020 Examples:\n021 \u003e\u003e\u003e uuid('2bc1c94f-0deb-43e9-92a1-4775189ec9f8')\nExpected:\n # Output: True\nGot:\n True\n```","author":{"url":"https://github.com/d-chris","@type":"Person","name":"d-chris"},"datePublished":"2025-03-18T17:18:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/416/validators/issues/416"}
| 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:2c0ae6a6-b838-03b9-d0b8-5cf88ef6b09e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E288:80F37:237684:308394:698EF006 |
| html-safe-nonce | 58851dbf6c28ffd21e47e019a8a19728293239f086f5013e49a99fa88bbc6c6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjg4OjgwRjM3OjIzNzY4NDozMDgzOTQ6Njk4RUYwMDYiLCJ2aXNpdG9yX2lkIjoiNTY5OTk3NzcwMzA0MzU1OTQzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2efa6b73b0744622243d285e313a8c0ccf9b126c3d8bc5b27a8e590d03bbefff |
| hovercard-subject-tag | issue:2929270018 |
| 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/python-validators/validators/416/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ef6291b1d1fc7b3ca87aab17d8d448343e8d65a73b38f872d11eba08a6ffb0e/python-validators/validators/issues/416 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ef6291b1d1fc7b3ca87aab17d8d448343e8d65a73b38f872d11eba08a6ffb0e/python-validators/validators/issues/416 |
| og:image:alt | running pytest --doctest-modules shows that the code snippets within the docstrings are wrong. _______________________ [doctest] validators.uuid.uuid ________________________ 014 Return whether or ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | d-chris |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/python-validators/validators git https://github.com/python-validators/validators.git |
| octolytics-dimension-user_id | 113113270 |
| octolytics-dimension-user_login | python-validators |
| octolytics-dimension-repository_id | 13642984 |
| octolytics-dimension-repository_nwo | python-validators/validators |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13642984 |
| octolytics-dimension-repository_network_root_nwo | python-validators/validators |
| 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 | 74ed479fe042e0ee79d00083dd248df8cc447655 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width