Title: `assert(Not)AlmostEqual(s)` specifies the type as `float` · Issue #7891 · python/typeshed · GitHub
Open Graph Title: `assert(Not)AlmostEqual(s)` specifies the type as `float` · Issue #7891 · python/typeshed
X Title: `assert(Not)AlmostEqual(s)` specifies the type as `float` · Issue #7891 · python/typeshed
Description: assert(Not)AlmostEqual(s) specifies the type as float or datetime.datetime, when in practice it works also with other types that support subtraction, absolute value, rounding and comparison with zero, such as Fraction or Decimal. This sh...
Open Graph Description: assert(Not)AlmostEqual(s) specifies the type as float or datetime.datetime, when in practice it works also with other types that support subtraction, absolute value, rounding and comparison with ze...
X Description: assert(Not)AlmostEqual(s) specifies the type as float or datetime.datetime, when in practice it works also with other types that support subtraction, absolute value, rounding and comparison with ze...
Opengraph URL: https://github.com/python/typeshed/issues/7891
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`assert(Not)AlmostEqual(s)` specifies the type as `float`","articleBody":"`assert(Not)AlmostEqual(s)` specifies the type as `float` or `datetime.datetime`, when in practice it works also with other types that support subtraction, absolute value, rounding and comparison with zero, such as `Fraction` or `Decimal`.\r\n\r\nThis should be fixed (using `TypeVar` and a `Protocol`) to prevent Mypy errors in tests that use these types.","author":{"url":"https://github.com/vnmabus","@type":"Person","name":"vnmabus"},"datePublished":"2022-05-20T09:15:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7891/typeshed/issues/7891"}
| 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:e8017e8b-723f-b638-61d7-d079e7f7fd97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFDC:50E3E:3DAA67:53FEFC:6A611A0A |
| html-safe-nonce | 85d636f6f2162d78d735ef20bee482ff8a8758f16bac6003e717964fa48be62e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkRDOjUwRTNFOjNEQUE2Nzo1M0ZFRkM6NkE2MTFBMEEiLCJ2aXNpdG9yX2lkIjoiMzY0NDQ2NjUyNzY4MzU0OTcwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85ed6412659950f856fd9f79542facab41d99ff89e915918323c26202bb57ab2 |
| hovercard-subject-tag | issue:1242862890 |
| 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/typeshed/7891/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1fe6017355e4de9a215fd056ebc7ce20612eac8d695b38b980d0bf232260b29b/python/typeshed/issues/7891 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1fe6017355e4de9a215fd056ebc7ce20612eac8d695b38b980d0bf232260b29b/python/typeshed/issues/7891 |
| og:image:alt | assert(Not)AlmostEqual(s) specifies the type as float or datetime.datetime, when in practice it works also with other types that support subtraction, absolute value, rounding and comparison with ze... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vnmabus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d23cf1c0cd2fa53870b9a743b3e1bc3ff0d0b0b3a477b50251e1c9dd8ecb93d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | abf5a2f79ab9b533c5865f5281057f7d17cf18f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width