[dateutil] Check platform before imports#15573
Conversation
Otherwise imports may fail on other platforms.
d249db5 to
32a5e0d
Compare
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
|
Coming from #15574, as I understand it, this was a problem when checking the stubs with mypy 1.8.0, which doesn't include With current mypy / typeshed, these imports exist on all platforms, so I don't think this is necessary here. For what it's worth, I'm not sure this helps with your use case either, since I'll go ahead and close this one, but thanks for the PR in any case! If you do find any other issues with the dateutil stubs, PRs are always welcome! |
Otherwise imports may fail on other platforms.