Skip to content

Commit

Permalink
fix(clp-py-utils): Replace typing tuple with Tuple for Python 3.8…
Browse files Browse the repository at this point in the history
… compatibility (fixes #693). (#692)
  • Loading branch information
junhaoliao authored Jan 24, 2025
1 parent b80f756 commit 4f0b596
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import logging
import sys
from typing import Tuple
from urllib.parse import urlparse

from pymongo import IndexModel, MongoClient
Expand All @@ -17,7 +18,7 @@
logger.addHandler(logging_console_handler)


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

0 comments on commit 4f0b596

Please sign in to comment.