robotcode-core 1.3.0.dev6__tar.gz → 1.4.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-1.3.0.dev6 → robotcode_core-1.4.0}/PKG-INFO +1 -1
- robotcode_core-1.4.0/src/robotcode/core/__version__.py +1 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/event.py +6 -6
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/text_document.py +1 -1
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/dataclasses.py +2 -2
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/inspect.py +1 -1
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/logging.py +6 -5
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/workspace.py +1 -1
- robotcode_core-1.3.0.dev6/src/robotcode/core/__version__.py +0 -1
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/.gitignore +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/LICENSE.txt +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/README.md +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/pyproject.toml +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/__init__.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/async_tools.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/concurrent.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/documents_manager.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/filewatcher.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/ignore_spec.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/language.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/lsp/__init__.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/lsp/types.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/py.typed +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/types.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/uri.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/__init__.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/caching.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/cli.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/debugpy.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/glob_path.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/net.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/path.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/process.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/safe_eval.py +0 -0
- {robotcode_core-1.3.0.dev6 → robotcode_core-1.4.0}/src/robotcode/core/utils/version.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.0"
|
|
@@ -72,10 +72,10 @@ class EventResultIteratorBase(Generic[_TParams, _TResult]):
|
|
|
72
72
|
|
|
73
73
|
def _notify(
|
|
74
74
|
self,
|
|
75
|
-
*__args:
|
|
75
|
+
*__args: Any,
|
|
76
76
|
return_exceptions: Optional[bool] = True,
|
|
77
77
|
callback_filter: Optional[Callable[[Callable[..., Any]], bool]] = None,
|
|
78
|
-
**__kwargs:
|
|
78
|
+
**__kwargs: Any,
|
|
79
79
|
) -> Iterator[Union[_TResult, BaseException]]:
|
|
80
80
|
for method in filter(
|
|
81
81
|
lambda x: callback_filter(x) if callback_filter is not None else True,
|
|
@@ -95,9 +95,9 @@ class EventResultIteratorBase(Generic[_TParams, _TResult]):
|
|
|
95
95
|
class EventIterator(EventResultIteratorBase[_TParams, _TResult]):
|
|
96
96
|
def __call__(
|
|
97
97
|
self,
|
|
98
|
-
*__args:
|
|
98
|
+
*__args: Any,
|
|
99
99
|
callback_filter: Optional[Callable[[Callable[..., Any]], bool]] = None,
|
|
100
|
-
**__kwargs:
|
|
100
|
+
**__kwargs: Any,
|
|
101
101
|
) -> Iterator[Union[_TResult, BaseException]]:
|
|
102
102
|
return self._notify(*__args, callback_filter=callback_filter, **__kwargs)
|
|
103
103
|
|
|
@@ -105,9 +105,9 @@ class EventIterator(EventResultIteratorBase[_TParams, _TResult]):
|
|
|
105
105
|
class Event(EventResultIteratorBase[_TParams, _TResult]):
|
|
106
106
|
def __call__(
|
|
107
107
|
self,
|
|
108
|
-
*__args:
|
|
108
|
+
*__args: Any,
|
|
109
109
|
callback_filter: Optional[Callable[[Callable[..., Any]], bool]] = None,
|
|
110
|
-
**__kwargs:
|
|
110
|
+
**__kwargs: Any,
|
|
111
111
|
) -> List[Union[_TResult, BaseException]]:
|
|
112
112
|
return list(self._notify(*__args, callback_filter=callback_filter, **__kwargs))
|
|
113
113
|
|
|
@@ -647,7 +647,7 @@ def validate_types(expected_types: Union[type, Tuple[type, ...], None], value: A
|
|
|
647
647
|
continue
|
|
648
648
|
|
|
649
649
|
if (
|
|
650
|
-
t is Any
|
|
650
|
+
t is Any
|
|
651
651
|
or t is Ellipsis # type: ignore
|
|
652
652
|
or isinstance(value, origin or t)
|
|
653
653
|
or (
|
|
@@ -683,7 +683,7 @@ def validate_types(expected_types: Union[type, Tuple[type, ...], None], value: A
|
|
|
683
683
|
|
|
684
684
|
return []
|
|
685
685
|
|
|
686
|
-
if t is Any:
|
|
686
|
+
if t is Any:
|
|
687
687
|
return []
|
|
688
688
|
|
|
689
689
|
if isinstance(value, origin or t):
|
|
@@ -136,7 +136,7 @@ class LoggingDescriptor:
|
|
|
136
136
|
|
|
137
137
|
if self.__func is not None:
|
|
138
138
|
if isinstance(self.__func, staticmethod):
|
|
139
|
-
returned_logger = self.__func.__func__()
|
|
139
|
+
returned_logger = self.__func.__func__()
|
|
140
140
|
else:
|
|
141
141
|
returned_logger = self.__func()
|
|
142
142
|
|
|
@@ -198,7 +198,7 @@ class LoggingDescriptor:
|
|
|
198
198
|
extra: Optional[Mapping[str, object]] = None,
|
|
199
199
|
**kwargs: Any,
|
|
200
200
|
) -> None:
|
|
201
|
-
if
|
|
201
|
+
if self.is_enabled_for(level) and (condition is None or condition()):
|
|
202
202
|
depth = 0
|
|
203
203
|
if context_name is not None:
|
|
204
204
|
depth = self._measure_contexts.get(context_name, 0)
|
|
@@ -238,7 +238,6 @@ class LoggingDescriptor:
|
|
|
238
238
|
**kwargs,
|
|
239
239
|
)
|
|
240
240
|
|
|
241
|
-
_log_measure_time = log
|
|
242
241
|
_measure_contexts: Dict[str, int] = {}
|
|
243
242
|
|
|
244
243
|
@contextmanager
|
|
@@ -259,11 +258,12 @@ class LoggingDescriptor:
|
|
|
259
258
|
|
|
260
259
|
self._measure_contexts[context_name] = depth
|
|
261
260
|
|
|
262
|
-
self.
|
|
261
|
+
self.log(
|
|
263
262
|
level,
|
|
264
263
|
lambda: f"Start {msg() if callable(msg) else msg}",
|
|
265
264
|
*args,
|
|
266
265
|
context_name=context_name,
|
|
266
|
+
stacklevel=3,
|
|
267
267
|
extra=extra,
|
|
268
268
|
**kwargs,
|
|
269
269
|
)
|
|
@@ -280,11 +280,12 @@ class LoggingDescriptor:
|
|
|
280
280
|
if context_name is not None:
|
|
281
281
|
self._measure_contexts[context_name] = depth
|
|
282
282
|
|
|
283
|
-
self.
|
|
283
|
+
self.log(
|
|
284
284
|
level,
|
|
285
285
|
lambda: f"End {msg() if callable(msg) else msg} took {duration:.4f} seconds",
|
|
286
286
|
*args,
|
|
287
287
|
context_name=context_name,
|
|
288
|
+
stacklevel=3,
|
|
288
289
|
extra=extra,
|
|
289
290
|
**kwargs,
|
|
290
291
|
)
|
|
@@ -76,7 +76,7 @@ class Workspace:
|
|
|
76
76
|
section: Type[TConfig],
|
|
77
77
|
scope_uri: Union[str, Uri, None] = None,
|
|
78
78
|
) -> TConfig:
|
|
79
|
-
result = self.settings
|
|
79
|
+
result: Any = self.settings
|
|
80
80
|
for sub_key in str(section).split("."):
|
|
81
81
|
if sub_key in result:
|
|
82
82
|
result = result.get(sub_key, None)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.3.0-dev.6"
|
|
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
|