robotcode-core 0.83.2__tar.gz → 0.84.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/.gitignore +3 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/PKG-INFO +1 -1
- robotcode_core-0.84.0/src/robotcode/core/__version__.py +1 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/concurrent.py +7 -2
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/dataclasses.py +6 -6
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/inspect.py +1 -1
- robotcode_core-0.83.2/src/robotcode/core/__version__.py +0 -1
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/LICENSE.txt +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/README.md +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/pyproject.toml +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/__init__.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/async_tools.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/documents_manager.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/event.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/filewatcher.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/language.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/lsp/__init__.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/lsp/types.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/py.typed +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/text_document.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/types.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/uri.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/__init__.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/caching.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/cli.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/debugpy.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/glob_path.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/logging.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/net.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/path.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/process.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/safe_eval.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/utils/version.py +0 -0
- {robotcode_core-0.83.2 → robotcode_core-0.84.0}/src/robotcode/core/workspace.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.84.0"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import contextlib
|
|
2
2
|
import inspect
|
|
3
|
+
import os
|
|
3
4
|
import threading
|
|
4
5
|
from concurrent.futures import CancelledError, Future
|
|
5
6
|
from types import TracebackType
|
|
@@ -246,8 +247,12 @@ def run_as_task(callable: Callable[_P, _TResult], *args: _P.args, **kwargs: _P.k
|
|
|
246
247
|
def run_as_debugpy_hidden_task(callable: Callable[_P, _TResult], *args: _P.args, **kwargs: _P.kwargs) -> Task[_TResult]:
|
|
247
248
|
future, thread = _create_task_in_thread(callable, *args, **kwargs)
|
|
248
249
|
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
hidden_tasks = os.environ.get("ROBOTCODE_DISABLE_HIDDEN_TASKS", "0")
|
|
251
|
+
hide = hidden_tasks == "0"
|
|
252
|
+
|
|
253
|
+
if hide:
|
|
254
|
+
thread.pydev_do_not_trace = True # type: ignore[attr-defined]
|
|
255
|
+
thread.is_pydev_daemon_thread = True # type: ignore[attr-defined]
|
|
251
256
|
|
|
252
257
|
thread.start()
|
|
253
258
|
|
|
@@ -314,7 +314,7 @@ def __from_dict_handle_basic_types(value: Any, t: Type[Any], strict: bool) -> Tu
|
|
|
314
314
|
|
|
315
315
|
|
|
316
316
|
def __from_dict_handle_sequence(value: Any, t: Type[Any], strict: bool) -> Tuple[Any, bool]:
|
|
317
|
-
if isinstance(value, Sequence):
|
|
317
|
+
if isinstance(value, Sequence) and not isinstance(value, str):
|
|
318
318
|
args = _get_args_cached(t)
|
|
319
319
|
return (_get_origin_cached(t) or t)(from_dict(v, args, strict=strict) for v in value), True
|
|
320
320
|
return None, False
|
|
@@ -471,7 +471,7 @@ def from_dict(
|
|
|
471
471
|
try:
|
|
472
472
|
return match_(**params)
|
|
473
473
|
except TypeError as ex:
|
|
474
|
-
raise TypeError(f"Can't initialize
|
|
474
|
+
raise TypeError(f"Can't initialize {match_!r} with parameters {params!r}: {ex}") from ex
|
|
475
475
|
|
|
476
476
|
raise TypeError(
|
|
477
477
|
"Value must be of type `"
|
|
@@ -639,7 +639,7 @@ def validate_types(expected_types: Union[type, Tuple[type, ...], None], value: A
|
|
|
639
639
|
continue
|
|
640
640
|
|
|
641
641
|
if (
|
|
642
|
-
t is Any
|
|
642
|
+
t is Any # type: ignore
|
|
643
643
|
or t is Ellipsis # type: ignore
|
|
644
644
|
or isinstance(value, origin or t)
|
|
645
645
|
or (
|
|
@@ -675,7 +675,7 @@ def validate_types(expected_types: Union[type, Tuple[type, ...], None], value: A
|
|
|
675
675
|
|
|
676
676
|
return []
|
|
677
677
|
|
|
678
|
-
if t is Any:
|
|
678
|
+
if t is Any: # type: ignore
|
|
679
679
|
return []
|
|
680
680
|
|
|
681
681
|
if isinstance(value, origin or t):
|
|
@@ -698,7 +698,7 @@ class ValidateMixin:
|
|
|
698
698
|
if not dataclasses.is_dataclass(self):
|
|
699
699
|
return
|
|
700
700
|
|
|
701
|
-
for f in dataclasses.fields(self):
|
|
701
|
+
for f in dataclasses.fields(self): # type: ignore
|
|
702
702
|
converter = f.metadata.get("convert")
|
|
703
703
|
if converter is not None:
|
|
704
704
|
if inspect.ismethod(converter):
|
|
@@ -710,7 +710,7 @@ class ValidateMixin:
|
|
|
710
710
|
if not dataclasses.is_dataclass(self):
|
|
711
711
|
return
|
|
712
712
|
|
|
713
|
-
errors = {}
|
|
713
|
+
errors = {} # type: ignore
|
|
714
714
|
|
|
715
715
|
type_hints = _get_type_hints_cached(type(self))
|
|
716
716
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.83.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|