Title: Add type hints for better mypy support · Issue #878 · allure-framework/allure-python · GitHub
Open Graph Title: Add type hints for better mypy support · Issue #878 · allure-framework/allure-python
X Title: Add type hints for better mypy support · Issue #878 · allure-framework/allure-python
Description: Hello! We use mypy to type check our pytest tests. So we have to use wrappers for allure helpers, e.g. from collections.abc import Callable from typing import Any, TypeVar, cast import allure F = TypeVar('F', bound=Callable[..., Any]) de...
Open Graph Description: Hello! We use mypy to type check our pytest tests. So we have to use wrappers for allure helpers, e.g. from collections.abc import Callable from typing import Any, TypeVar, cast import allure F = T...
X Description: Hello! We use mypy to type check our pytest tests. So we have to use wrappers for allure helpers, e.g. from collections.abc import Callable from typing import Any, TypeVar, cast import allure F = T...
Opengraph URL: https://github.com/allure-framework/allure-python/issues/878
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add type hints for better mypy support","articleBody":"Hello!\n\nWe use mypy to type check our pytest tests. So we have to use wrappers for allure helpers, e.g.\n\n```\nfrom collections.abc import Callable\nfrom typing import Any, TypeVar, cast\n\nimport allure\n\nF = TypeVar('F', bound=Callable[..., Any])\n\n\ndef epic(*items: str) -\u003e Callable[[F], F]:\n return cast('Callable[[F], F]', allure.epic(*items)) # type: ignore[no-untyped-call]\n\n\ndef tag(*tags: str) -\u003e Callable[[F], F]:\n return cast('Callable[[F], F]', allure.tag(*tags)) # type: ignore[no-untyped-call]\n\n... and so on\n```\nor even use global mute for untyped calls in typed context.\n\n\nCan you please clarify if there are any plans to introduce type hints into framework?\n\nThank you.\n\n","author":{"url":"https://github.com/funkindy","@type":"Person","name":"funkindy"},"datePublished":"2025-09-30T14:40:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/878/allure-python/issues/878"}
| 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:932c0ffd-546a-a174-14e6-8db5db5c2b48 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDB8:2A511E:5CD9F6:7ECFB4:696E77FF |
| html-safe-nonce | fac462b5a65583e506817e19e9e9664400cdb843dff772cdc8b5dc0992db99bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREI4OjJBNTExRTo1Q0Q5RjY6N0VDRkI0OjY5NkU3N0ZGIiwidmlzaXRvcl9pZCI6IjgyOTA2NjcwNDA3MjQ2NDU4ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 216b20cb1daf313fb349fea609da8cb425740fa04fe47c8ab79696dc5b007de7 |
| hovercard-subject-tag | issue:3469835204 |
| 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/allure-framework/allure-python/878/issue_layout |
| twitter:image | https://opengraph.githubassets.com/edb78653c52880c1fa98b5bed286435bb296c037779fb3739c5ef4532297317f/allure-framework/allure-python/issues/878 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/edb78653c52880c1fa98b5bed286435bb296c037779fb3739c5ef4532297317f/allure-framework/allure-python/issues/878 |
| og:image:alt | Hello! We use mypy to type check our pytest tests. So we have to use wrappers for allure helpers, e.g. from collections.abc import Callable from typing import Any, TypeVar, cast import allure F = T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | funkindy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01185010a96388a2a8cd8bd7f5824fdf090522b219f9aecf8c7ff1857aeb489b |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 673a80c1bce2a1e6a48b530ce2b72bf8fd253386 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width