Title: Add a plugin hook for handling function/method decorators · Issue #9915 · python/mypy · GitHub
Open Graph Title: Add a plugin hook for handling function/method decorators · Issue #9915 · python/mypy
X Title: Add a plugin hook for handling function/method decorators · Issue #9915 · python/mypy
Description: Feature mypy currently has the get_class_decorator_hook plugin hook. I want to propose adding a get_function_decorator_hook and get_method_decorator_hook. Pitch Adding these hooks would allow special handling of decorated functions, as w...
Open Graph Description: Feature mypy currently has the get_class_decorator_hook plugin hook. I want to propose adding a get_function_decorator_hook and get_method_decorator_hook. Pitch Adding these hooks would allow speci...
X Description: Feature mypy currently has the get_class_decorator_hook plugin hook. I want to propose adding a get_function_decorator_hook and get_method_decorator_hook. Pitch Adding these hooks would allow speci...
Opengraph URL: https://github.com/python/mypy/issues/9915
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a plugin hook for handling function/method decorators","articleBody":"**Feature**\r\n\r\nmypy currently has the `get_class_decorator_hook` plugin hook. I want to propose adding a `get_function_decorator_hook` and `get_method_decorator_hook`.\r\n\r\n**Pitch**\r\n\r\nAdding these hooks would allow special handling of decorated functions, as would for example be required to solve #9911 using a plugin. mypy currently has special handling for a few decorated such as `builtins.property`, `typing.final` and more, but from what I can see it's currently not possible to add additional cases using a plugin.\r\n\r\nI have already experimented with this a bit and could probably open a PR in the near future.\r\n","author":{"url":"https://github.com/freundTech","@type":"Person","name":"freundTech"},"datePublished":"2021-01-16T00:03:16Z","url":"https://github.com/python/mypy/issues/9915"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:4077806e-684e-8b8a-dcc4-f042013d9009 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8094:100874:104E7AC:1560085:6B0005B5 |
| html-safe-nonce | 5cd6ae491a76ccc9ffb52d3e24539c666df25001ad42866d50a885540df52850 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDk0OjEwMDg3NDoxMDRFN0FDOjE1NjAwODU6NkIwMDA1QjUiLCJ2aXNpdG9yX2lkIjoiMTc1MzE3MjgxMjcwMjQxODM1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ec7b8e5c4621d9d5f5c19b60539d0f1e1196ccc1f1ad121cd54c95a9e4a9e12b |
| hovercard-subject-tag | issue:787293814 |
| 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/mypy/9915/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03fad92ee8fadd7b35d903d9ff3ec8f603fb1b7ba0cabb44571a5d6a0012d1a0/python/mypy/issues/9915 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03fad92ee8fadd7b35d903d9ff3ec8f603fb1b7ba0cabb44571a5d6a0012d1a0/python/mypy/issues/9915 |
| og:image:alt | Feature mypy currently has the get_class_decorator_hook plugin hook. I want to propose adding a get_function_decorator_hook and get_method_decorator_hook. Pitch Adding these hooks would allow speci... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | freundTech |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width