-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Use sys.platform instead of comments #2286
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
To fix failing tests https://travis-ci.org/python/typeshed/jobs/397420897, should we update tests in mypy, or should we avoid using |
|
Hm, I see the problem. Many of the |
|
I see the problem. I reverted stubs for |
|
I wonder if the same problem will happen with other flags changed in this PR. @gvanrossum perhaps you could check this PR against Dropbox's codebase to see if it introduces new mypy errors? (Our typed codebase doesn't tend to use low-level os features.) |
|
OK checking now... |
gvanrossum
left a comment
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.
OK, it all works fine with the internal code bases.
|
Thanks for checking! |
|
PS. In the future don't amend your commits during code review -- just push new commits, it's easier for the reviewers. They'll be squashed when we merge. |
|
Sorry about that. I'll take care next time! |
Use of
sys.platformis now recommended for platform-dependent APIs #2275. So, I update stubs which contains# Windows onlyor# Unix onlyto useif sys.platform ....