diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py index 35ef2973d4a0..f02038b1e685 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming @@ -291,7 +291,7 @@ class _ComputeThreatListDiff(WebRiskServiceRestStub): def __hash__(self): return hash("ComputeThreatListDiff") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatType": {}, "constraints": {}, } @@ -382,7 +382,7 @@ class _CreateSubmission(WebRiskServiceRestStub): def __hash__(self): return hash("CreateSubmission") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -483,7 +483,7 @@ class _SearchHashes(WebRiskServiceRestStub): def __hash__(self): return hash("SearchHashes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatTypes": {}, } @@ -573,7 +573,7 @@ class _SearchUris(WebRiskServiceRestStub): def __hash__(self): return hash("SearchUris") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "uri": "", "threatTypes": {}, } diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py index 95f011ec60f5..22719c50c2b0 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py index 6da0a2d16443..9e3d15253f48 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py @@ -17,7 +17,7 @@ import dataclasses import json # type: ignore import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming @@ -260,7 +260,7 @@ class _ComputeThreatListDiff(WebRiskServiceV1Beta1RestStub): def __hash__(self): return hash("ComputeThreatListDiff") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatType": {}, "constraints": {}, } @@ -351,7 +351,7 @@ class _SearchHashes(WebRiskServiceV1Beta1RestStub): def __hash__(self): return hash("SearchHashes") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "threatTypes": {}, } @@ -441,7 +441,7 @@ class _SearchUris(WebRiskServiceV1Beta1RestStub): def __hash__(self): return hash("SearchUris") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "uri": "", "threatTypes": {}, } diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py index c6fbf91a1faa..fbbc83901bd7 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence from google.protobuf import timestamp_pb2 # type: ignore