[3.8] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20948)



Signed-off-by: Christian Heimes <christian@python.org>

Automerge-Triggered-By: @tiran.
(cherry picked from commit bb6ec14479f18c32e71e43f2785f177aa17aabbd)

Co-authored-by: Christian Heimes <christian@python.org>
2 files changed