File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,9 @@ strict = True
4
4
exclude = noxfile\.py
5
5
warn_unused_configs = True
6
6
7
- [mypy-avro.*,backoff,flaky]
7
+ ; Ignore errors caused due to missing library stubs or py.typed marker
8
+ ; Refer https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker
9
+ ; Errors ignored instead of adding stubs as a workaround, since this directory contains sample code
10
+ ; that does not affect the functionality of the client library.
11
+ [mypy-avro.*,backoff,flaky,google.cloud.*]
8
12
ignore_missing_imports = True
Original file line number Diff line number Diff line change @@ -528,8 +528,10 @@ def update_subscription_with_dead_letter_policy(
528
528
)
529
529
530
530
with subscriber :
531
- subscription_after_update = subscriber .update_subscription (
532
- request = {"subscription" : subscription , "update_mask" : update_mask }
531
+ subscription_after_update : gapic_types .Subscription = (
532
+ subscriber .update_subscription (
533
+ request = {"subscription" : subscription , "update_mask" : update_mask }
534
+ )
533
535
)
534
536
535
537
print (f"After the update: { subscription_after_update } ." )
@@ -573,8 +575,10 @@ def remove_dead_letter_policy(
573
575
)
574
576
575
577
with subscriber :
576
- subscription_after_update = subscriber .update_subscription (
577
- request = {"subscription" : subscription , "update_mask" : update_mask }
578
+ subscription_after_update : gapic_types .Subscription = (
579
+ subscriber .update_subscription (
580
+ request = {"subscription" : subscription , "update_mask" : update_mask }
581
+ )
578
582
)
579
583
580
584
print (f"After removing the policy: { subscription_after_update } ." )
You can’t perform that action at this time.
0 commit comments