Skip to content

Commit 3281555

Browse files
committed
Turn off type hints enforcing for old samples
1 parent 445e6a6 commit 3281555

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

kms/attestations/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ignored_versions": ["2.7"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
28-
"enforce_type_hints": True,
28+
"enforce_type_hints": False,
2929
# An envvar key for determining the project id to use. Change it
3030
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
3131
# build specific Cloud project. You can also use your own string

kms/attestations/verify_attestation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import pem
3232

3333

34-
def verify(attestation_file: str, bundle_file: str):bool
34+
def verify(attestation_file, bundle_file):
3535
"""Verifies an attestation using a bundle of certificates.
3636
3737
Args:

kms/snippets/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ignored_versions": ["2.7"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
28-
"enforce_type_hints": True,
28+
"enforce_type_hints": False,
2929
# An envvar key for determining the project id to use. Change it
3030
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
3131
# build specific Cloud project. You can also use your own string

0 commit comments

Comments
 (0)