diff --git a/src/debugpy/server/cli.py b/src/debugpy/server/cli.py index 0fc5e255..a9c442f9 100644 --- a/src/debugpy/server/cli.py +++ b/src/debugpy/server/cli.py @@ -8,6 +8,9 @@ import re import sys from importlib.util import find_spec from typing import Any +from typing import Union +from typing import Tuple +from typing import Dict # debugpy.__main__ should have preloaded pydevd properly before importing this module. # Otherwise, some stdlib modules above might have had imported threading before pydevd @@ -43,14 +46,14 @@ Usage: debugpy --listen | --connect class Options(object): mode = None - address: "tuple[str, int] | None" = None + address: Union[Tuple[str, int], None] = None log_to = None log_to_stderr = False - target: str | None = None - target_kind: str | None = None + target: Union[str, None] = None + target_kind: Union[str, None] = None wait_for_client = False adapter_access_token = None - config: "dict[str, Any]" = {} + config: Dict[str, Any] = {} options = Options()