-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix various typing errors on Windows #10674
Conversation
from wsgi import StartResponse, WSGIApplication, WSGIEnvironment | ||
from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what Werkzeug does to satisfy Mypy.
Uh, now POSIX does not like |
00d1040
to
edf8631
Compare
edf8631
to
51f7aa9
Compare
Uh, this is all so terrible. I gave up on a couple of files and applied file-wide disables instead 馃槥 |
@@ -6,7 +6,7 @@ | |||
from typing import Any, Optional, cast | |||
from unittest import mock | |||
|
|||
import freezegun # type: ignore | |||
import freezegun # type: ignore # mypy: no-warn-unused-ignores |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this type: ignore? What fails if we remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was needed for me at some point but I just tried and this is not needed anymore. Not sure what changed, but I鈥檓 only interested in getting my pre-commit to work TBH so let鈥檚 revert this.
Should we set up CI to run linters on Windows as well? |
Not really worth it IMO, it鈥檚 slow and only helps in edge cases that are relatively easy to spot. |
Any further comments on this? |
Nope. Feel free to merge. :) |
馃し