
How many openbsd versions are there that matter for this purpose? IIRC you can use `sys.platform in ('openbsd1', 'openbsd2', 'openbsd3')`. If there are only a few that would work without changing the static type checkers (there are so many of those now that it would be a bit of a pain to get all of them to support such a new feature). On Wed, May 5, 2021 at 12:06 AM Sebastian Rittau <srittau@rittau.biz> wrote:
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
_______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: guido@python.org
-- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...>