SERVER-122791: Fix Python 3.9 compatibility by replacing str | None with Optional[str]
GitOrigin-RevId: 40a2e0f542b0a68f0ed51fa216e9d38b9917fe14
This commit is contained in:
parent
1e28b86788
commit
e932e0ec0f
@ -6,6 +6,7 @@ import subprocess
|
||||
import tempfile
|
||||
from collections import defaultdict
|
||||
from subprocess import check_output
|
||||
from typing import Optional
|
||||
|
||||
from buildscripts.resmokelib.testing import tags as _tags
|
||||
from buildscripts.resmokelib.config import MultiversionOptions
|
||||
@ -21,7 +22,7 @@ BACKPORTS_REQUIRED_FILE = "backports_required_for_multiversion_tests.yml"
|
||||
BACKPORTS_REQUIRED_BASE_URL = "https://raw.githubusercontent.com/10gen/mongo"
|
||||
|
||||
|
||||
def get_backports_required_hash_for_shell_version(mongo_shell_path: str | None = None):
|
||||
def get_backports_required_hash_for_shell_version(mongo_shell_path: Optional[str] = None):
|
||||
"""Parse the old shell binary to get the commit hash."""
|
||||
env_vars = os.environ.copy()
|
||||
paths = get_path_env_var(env_vars=env_vars)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user