Title: Be more precise than generic `Callable` in type hints · Issue #199 · openzim/python-scraperlib · GitHub
Open Graph Title: Be more precise than generic `Callable` in type hints · Issue #199 · openzim/python-scraperlib
X Title: Be more precise than generic `Callable` in type hints · Issue #199 · openzim/python-scraperlib
Description: callback argument of zim.creater.Creator.add_item_for is reported by pyright as partially unknown when in strict mode due to the use of generic Callable. This is a problem in projects setting pyright in strict mode. The same generic Call...
Open Graph Description: callback argument of zim.creater.Creator.add_item_for is reported by pyright as partially unknown when in strict mode due to the use of generic Callable. This is a problem in projects setting pyrig...
X Description: callback argument of zim.creater.Creator.add_item_for is reported by pyright as partially unknown when in strict mode due to the use of generic Callable. This is a problem in projects setting pyrig...
Opengraph URL: https://github.com/openzim/python-scraperlib/issues/199
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Be more precise than generic `Callable` in type hints","articleBody":"`callback` argument of `zim.creater.Creator.add_item_for` is reported by pyright as partially unknown when in `strict` mode due to the use of generic `Callable`.\n\nThis is a problem in projects setting `pyright` in strict mode.\n\nThe same generic `Callable` seems to be an issue in other parts of the code.\n\nWe should probably fix this with a more precise type hint, ","author":{"url":"https://github.com/benoit74","@type":"Person","name":"benoit74"},"datePublished":"2024-10-03T11:32:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/199/python-scraperlib/issues/199"}
| 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:8fb3dbf9-bc4a-abd9-4f19-e653d239e4d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 976A:DE07F:557EC6:736C2E:698F76DE |
| html-safe-nonce | 31c4f61cb6b347445034f61adfabb824ec3ab32798f108cf6ad1079c8bb1961a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzZBOkRFMDdGOjU1N0VDNjo3MzZDMkU6Njk4Rjc2REUiLCJ2aXNpdG9yX2lkIjoiNzU0ODA4NzM2MDExOTg2MzAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9443a0b386166dc0e75964d972a7ba16c1069f39b01aac97a778426348dcc2a9 |
| hovercard-subject-tag | issue:2563821744 |
| 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/openzim/python-scraperlib/199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8844b85243b5faf67e292228acae36e2edc2109bdbeb9b9cb7ca9b872867d170/openzim/python-scraperlib/issues/199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8844b85243b5faf67e292228acae36e2edc2109bdbeb9b9cb7ca9b872867d170/openzim/python-scraperlib/issues/199 |
| og:image:alt | callback argument of zim.creater.Creator.add_item_for is reported by pyright as partially unknown when in strict mode due to the use of generic Callable. This is a problem in projects setting pyrig... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | benoit74 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a40913be56b49e6322246e4bcd65ab6ec4b458c6dca6b691d30419da1e5ee35e |
| turbo-cache-control | no-preview |
| go-import | github.com/openzim/python-scraperlib git https://github.com/openzim/python-scraperlib.git |
| octolytics-dimension-user_id | 26540839 |
| octolytics-dimension-user_login | openzim |
| octolytics-dimension-repository_id | 237924365 |
| octolytics-dimension-repository_nwo | openzim/python-scraperlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 237924365 |
| octolytics-dimension-repository_network_root_nwo | openzim/python-scraperlib |
| 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 | ca6051e0ba2303370981e3d01e2bc1044eb3b429 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width