Use sys.platform instead of comments#2286
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.
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 ....