mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
change to Union syntax to support older python versions
This commit is contained in:
parent
96e9f1e909
commit
16a4b9c0a6
1 changed files with 7 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue