From 32815553e71db57aac18606e8521e0020259c39f Mon Sep 17 00:00:00 2001 From: rsamborski Date: Wed, 9 Nov 2022 10:48:57 +0100 Subject: [PATCH] Turn off type hints enforcing for old samples --- kms/attestations/noxfile_config.py | 2 +- kms/attestations/verify_attestation.py | 2 +- kms/snippets/noxfile_config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kms/attestations/noxfile_config.py b/kms/attestations/noxfile_config.py index f1fa9e5618b0..34d0d0b1bb8a 100644 --- a/kms/attestations/noxfile_config.py +++ b/kms/attestations/noxfile_config.py @@ -25,7 +25,7 @@ "ignored_versions": ["2.7"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them - "enforce_type_hints": True, + "enforce_type_hints": False, # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/kms/attestations/verify_attestation.py b/kms/attestations/verify_attestation.py index cb296712f730..d56242b0194b 100644 --- a/kms/attestations/verify_attestation.py +++ b/kms/attestations/verify_attestation.py @@ -31,7 +31,7 @@ import pem -def verify(attestation_file: str, bundle_file: str):bool +def verify(attestation_file, bundle_file): """Verifies an attestation using a bundle of certificates. Args: diff --git a/kms/snippets/noxfile_config.py b/kms/snippets/noxfile_config.py index f1fa9e5618b0..34d0d0b1bb8a 100644 --- a/kms/snippets/noxfile_config.py +++ b/kms/snippets/noxfile_config.py @@ -25,7 +25,7 @@ "ignored_versions": ["2.7"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them - "enforce_type_hints": True, + "enforce_type_hints": False, # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string