File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 19
19
import json
20
20
import os
21
21
import platform
22
+ from typing import Optional
22
23
from urllib .parse import urlencode
23
24
import warnings
24
25
@@ -168,19 +169,19 @@ class JSONConnection(Connection):
168
169
must be updated by subclasses.
169
170
"""
170
171
171
- API_BASE_URL = None
172
+ API_BASE_URL : Optional [ str ] = None
172
173
"""The base of the API call URL."""
173
174
174
- API_BASE_MTLS_URL = None
175
+ API_BASE_MTLS_URL : Optional [ str ] = None
175
176
"""The base of the API call URL for mutual TLS."""
176
177
177
178
ALLOW_AUTO_SWITCH_TO_MTLS_URL = False
178
179
"""Indicates if auto switch to mTLS url is allowed."""
179
180
180
- API_VERSION = None
181
+ API_VERSION : Optional [ str ] = None
181
182
"""The version of the API, used in building the API call's URL."""
182
183
183
- API_URL_TEMPLATE = None
184
+ API_URL_TEMPLATE : Optional [ str ] = None
184
185
"""A template for the URL of a particular API call."""
185
186
186
187
def get_api_base_url_for_mtls (self , api_base_url = None ):
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class Client(_ClientFactoryMixin):
144
144
to acquire default credentials.
145
145
"""
146
146
147
- SCOPE : Union [Tuple [str ], None ] = None
147
+ SCOPE : Union [Tuple [str , ... ], None ] = None
148
148
"""The scopes required for authenticating with a service.
149
149
150
150
Needs to be set by subclasses.
You can’t perform that action at this time.
0 commit comments