feat(typing): added py.typed marker file#254
feat(typing): added py.typed marker file#254Secrus wants to merge 2 commits intopython-poetry:mainfrom
py.typed marker file#254Conversation
|
While the table module is not typed for now, I think this can be applied anyway, since it's only one module (see #265 ). |
|
First, even ignoring (ideally this wants fixing in As for Less bad from a consumer point of view - though still annoying! - would be to remove types from those functions whose types you can't figure out how to fix. That's at least close to being explicit about "we haven't typed this function" rather than publishing types that you know are wrong. |
Thanks for your insight, I will look into this type error. As to incomplete typing, I have decided to postpone pushing this and finish the typing game. |
|
@dimbleby what option did you activate to see this error? |
well of course it does, I didn't make it up! At a guess the problem is that you - and the CI pipeline - are only running mypy through precommit. This is inadequate because the pre-commit environment does not contain all the other libraries and type stubs that mypy needs to do proper analysis. You probably want to shift mypy checking to being a 'proper' step in the CI workflow, cf what poetry does |
I wasn't trying to say that you made this up, I simply didn't know how to reproduce this. Shame that |
|
Closing in favor of #274 |
This PR waits until
src/cleo/ui/tablemodule is properly typed.