
May 5, 2021
9:26 a.m.
Am 04.05.21 um 21:01 schrieb talhayon1@gmail.com:
I've been directed here from the typeshed community. Currently none of the type checkers and pyi linters support startswith with regards to sys.platform. It is however necessary for some more precise definitions for platform dependent constants - the sys.platform value for openbsd is openbsd{version} so comparison alone is not enough. Note that this is the recommended way to check for these other operating systems in the docs.
I'm not familiar with BSD-family operating systems, but from what I write, this makes sense to me. - Sebastian