mypy: fix "unused type ignore" issue on windows#5524
Conversation
4eb7c98 to
c7c6817
Compare
c7c6817 to
33ce698
Compare
|
poetry.utils._compat has It looks as though Therefore suggest it would be cleaner to change all of the |
agreed, this code originated from appdirs, which has been superseded by platformdirs which does exactly that |
33ce698 to
21b59fd
Compare
|
platformdirs is already in poetry's dependency tree (via virtualenv), perhaps it would be better just to use that directly, rather than maintaining an old copy of it |
|
You are probably right but that requires further investigation. The docstring says "modified to suit our purposes". I suppose we should check what modifications were made and if these are obsolete when using For now, I'm satisfied with fixing mypy but feel free to check if |
|
per comment in that MR, this does change the behaviour on MacOS, in a way that seems to be a straight bug fix. I look forward to learning whether poetry feels able to take such things. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
At the moment the mypy pre-commit hooks fails on windows with: