change to Union syntax to support older python versions

This commit is contained in:
Adam Yoblick 2024-07-09 15:16:37 -05:00
parent 96e9f1e909
commit 16a4b9c0a6

View file

@ -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()