Skip to content

Commit 4f0b596

Browse files
authored
fix(clp-py-utils): Replace typing tuple with Tuple for Python 3.8 compatibility (fixes #693). (#692)
1 parent b80f756 commit 4f0b596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/clp-py-utils/clp_py_utils/initialize-results-cache.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import argparse
22
import logging
33
import sys
4+
from typing import Tuple
45
from urllib.parse import urlparse
56

67
from pymongo import IndexModel, MongoClient
@@ -17,7 +18,7 @@
1718
logger.addHandler(logging_console_handler)
1819

1920

20-
def check_replica_set_status(client: MongoClient, netloc: str) -> tuple[bool, bool]:
21+
def check_replica_set_status(client: MongoClient, netloc: str) -> Tuple[bool, bool]:
2122
"""
2223
Checks the current replica set status of the MongoDB server and determines whether it needs to
2324
be configured (or reconfigured).

0 commit comments

Comments
 (0)