Skip to content

Commit aae8acc

Browse files
orianYibo-Chen13
authored andcommitted
Make all None by default arguments accept None value (ClickHouse#450)
Signed-off-by: Paweł Szczur <[email protected]>
1 parent 00fc239 commit aae8acc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clickhouse_connect/driver/httputil.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ def close_managers():
5555
def get_pool_manager_options(keep_interval: int = DEFAULT_KEEP_INTERVAL,
5656
keep_count: int = DEFAULT_KEEP_COUNT,
5757
keep_idle: int = DEFAULT_KEEP_IDLE,
58-
ca_cert: str = None,
58+
ca_cert: Optional[str] = None,
5959
verify: bool = True,
60-
client_cert: str = None,
61-
client_cert_key: str = None,
60+
client_cert: Optional[str] = None,
61+
client_cert_key: Optional[str] = None,
6262
**options) -> Dict[str, Any]:
6363
socket_options = core_socket_options.copy()
6464
if getattr(socket, 'TCP_KEEPINTVL', None) is not None:
@@ -88,12 +88,12 @@ def get_pool_manager_options(keep_interval: int = DEFAULT_KEEP_INTERVAL,
8888
def get_pool_manager(keep_interval: int = DEFAULT_KEEP_INTERVAL,
8989
keep_count: int = DEFAULT_KEEP_COUNT,
9090
keep_idle: int = DEFAULT_KEEP_IDLE,
91-
ca_cert: str = None,
91+
ca_cert: Optional[str] = None,
9292
verify: bool = True,
93-
client_cert: str = None,
94-
client_cert_key: str = None,
95-
http_proxy: str = None,
96-
https_proxy: str = None,
93+
client_cert: Optional[str] = None,
94+
client_cert_key: Optional[str] = None,
95+
http_proxy: Optional[str] = None,
96+
https_proxy: Optional[str] = None,
9797
**options):
9898
options = get_pool_manager_options(keep_interval,
9999
keep_count,

0 commit comments

Comments
 (0)