Skip to content

Commit c15b90a

Browse files
committed
build: update packages
1 parent 8b7af4f commit c15b90a

File tree

3 files changed

+83
-84
lines changed

3 files changed

+83
-84
lines changed

package-lock.json

Lines changed: 72 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
}
6060
},
6161
"activationEvents": [
62-
"onLanguage:robotframework",
6362
"workspaceContains:**/*.{robot,resource}",
6463
"onDebug",
6564
"onDebugResolve:robotcode",
@@ -1222,18 +1221,18 @@
12221221
"dependencies": {
12231222
"@vscode/debugadapter": "^1.59.0",
12241223
"ansi-colors": "^4.1.3",
1225-
"vscode-languageclient": "^8.1.0-next.6"
1224+
"vscode-languageclient": "^8.1.0"
12261225
},
12271226
"devDependencies": {
12281227
"@types/glob": "^8.0.1",
12291228
"@types/mocha": "^10.0.1",
1230-
"@types/node": "^18.11.18",
1229+
"@types/node": "^18.14.0",
12311230
"@types/vscode": "^1.74.0",
1232-
"@typescript-eslint/eslint-plugin": "^5.50.0",
1233-
"@typescript-eslint/parser": "^5.50.0",
1231+
"@typescript-eslint/eslint-plugin": "^5.53.0",
1232+
"@typescript-eslint/parser": "^5.53.0",
12341233
"@vscode/debugadapter-testsupport": "^1.59.0",
12351234
"@vscode/test-electron": "^2.2.3",
1236-
"eslint": "^8.33.0",
1235+
"eslint": "^8.34.0",
12371236
"eslint-config-prettier": "^8.6.0",
12381237
"eslint-plugin-import": "^2.27.5",
12391238
"eslint-plugin-jsx-a11y": "^6.7.1",
@@ -1242,7 +1241,7 @@
12421241
"glob": "^8.1.0",
12431242
"mocha": "^10.2.0",
12441243
"ovsx": "^0.8.0",
1245-
"prettier": "^2.8.3",
1244+
"prettier": "^2.8.4",
12461245
"ts-loader": "^9.4.2",
12471246
"typescript": "^4.9.5",
12481247
"@vscode/vsce": "^2.17.0",

robotcode/utils/dataclasses.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def from_dict(value: Any, types: Union[Type[_T], Tuple[Type[_T], ...], None] = N
202202
return cast(_T, value)
203203

204204
if isinstance(value, Mapping):
205-
match: Optional[Type[_T]] = None
205+
match_: Optional[Type[_T]] = None
206206
match_same_keys: Optional[List[str]] = None
207207
match_value: Optional[Dict[str, Any]] = None
208208
match_signature: Optional[inspect.Signature] = None
@@ -236,7 +236,7 @@ def from_dict(value: Any, types: Union[Type[_T], Tuple[Type[_T], ...], None] = N
236236

237237
if match_same_keys is None or len(match_same_keys) < len(same_keys):
238238
match_same_keys = same_keys
239-
match = t
239+
match_ = t
240240
match_value = cased_value
241241
match_signature = signature
242242
match_type_hints = type_hints
@@ -247,7 +247,7 @@ def from_dict(value: Any, types: Union[Type[_T], Tuple[Type[_T], ...], None] = N
247247
)
248248

249249
if (
250-
match is not None
250+
match_ is not None
251251
and match_value is not None
252252
and match_signature is not None
253253
and match_type_hints is not None
@@ -259,9 +259,9 @@ def from_dict(value: Any, types: Union[Type[_T], Tuple[Type[_T], ...], None] = N
259259
}
260260

261261
try:
262-
return match(**params)
262+
return match_(**params)
263263
except TypeError as ex:
264-
raise TypeError(f"Can't initialize class {repr(match)} with parameters {repr(params)}.") from ex
264+
raise TypeError(f"Can't initialize class {repr(match_)} with parameters {repr(params)}.") from ex
265265

266266
for t in types:
267267
args = get_args(t)

0 commit comments

Comments
 (0)