robotcode-robot 0.89.0__py3-none-any.whl → 0.89.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- __version__ = "0.89.0"
1
+ __version__ = "0.89.1"
@@ -538,7 +538,7 @@ class BlockVariableVisitor(OnlyArgumentsVisitor):
538
538
  source=self.namespace.source,
539
539
  )
540
540
 
541
- if var_name not in self._results or type(self._results[var_name]) is type(var):
541
+ if var_name not in self._results or type(self._results[var_name]) is not type(var):
542
542
  if isinstance(var, LocalVariableDefinition) or not any(
543
543
  l for l in self.namespace.get_global_variables() if l.matcher == var.matcher
544
544
  ):
@@ -225,6 +225,21 @@ def _tokenize_no_variables(token: Token) -> Iterator[Token]:
225
225
  yield token
226
226
 
227
227
 
228
+ if get_robot_version() < (5, 0):
229
+ ALLOWED_TOKEN_TYPES = {
230
+ *Token.ALLOW_VARIABLES,
231
+ Token.KEYWORD,
232
+ Token.ASSIGN,
233
+ }
234
+ else:
235
+ ALLOWED_TOKEN_TYPES = {
236
+ *Token.ALLOW_VARIABLES,
237
+ Token.KEYWORD,
238
+ Token.ASSIGN,
239
+ Token.OPTION,
240
+ }
241
+
242
+
228
243
  def tokenize_variables(
229
244
  token: Token,
230
245
  identifiers: str = "$@&%",
@@ -233,9 +248,7 @@ def tokenize_variables(
233
248
  extra_types: Optional[Set[str]] = None,
234
249
  ) -> Iterator[Token]:
235
250
  if token.type not in {
236
- *Token.ALLOW_VARIABLES,
237
- Token.KEYWORD,
238
- Token.ASSIGN,
251
+ *ALLOWED_TOKEN_TYPES,
239
252
  *(extra_types if extra_types is not None else set()),
240
253
  }:
241
254
  return _tokenize_no_variables(token)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robotcode-robot
3
- Version: 0.89.0
3
+ Version: 0.89.1
4
4
  Summary: Support classes for RobotCode for handling Robot Framework projects.
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
26
26
  Classifier: Typing :: Typed
27
27
  Requires-Python: >=3.8
28
28
  Requires-Dist: platformdirs<4.2.0,>=3.2.0
29
- Requires-Dist: robotcode-core==0.89.0
29
+ Requires-Dist: robotcode-core==0.89.1
30
30
  Requires-Dist: robotframework>=4.1.0
31
31
  Requires-Dist: tomli>=1.1.0; python_version < '3.11'
32
32
  Description-Content-Type: text/markdown
@@ -1,5 +1,5 @@
1
1
  robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- robotcode/robot/__version__.py,sha256=0dsP1JW1TkWXOWQ5JFTW7tQopcf-xbHKy_C8NKkqYeA,23
2
+ robotcode/robot/__version__.py,sha256=LDE7Agq_JZ3pdf1_Beq75uUNXEeUm6_Wl1o0UL3USFE,23
3
3
  robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
4
4
  robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  robotcode/robot/config/loader.py,sha256=LpGqJAdysvVSZpccW-Il52xn9RMBBb9X94emlBY7zCc,6077
@@ -13,18 +13,18 @@ robotcode/robot/diagnostics/errors.py,sha256=1DNxi1lbz4HAWocCi-4zY1IgUGO3J04kY_s
13
13
  robotcode/robot/diagnostics/imports_manager.py,sha256=qE__lm0Hsj3R0gUauXRmbWJPYihNjk3O-c5hcICGQjc,56251
14
14
  robotcode/robot/diagnostics/library_doc.py,sha256=CHgyC9GMRQFP3fGTxWa139rIcGIk8Ys6Q_ZIDSgse7k,97324
15
15
  robotcode/robot/diagnostics/model_helper.py,sha256=_5ixKKMrb-nY-uvV8_WjJ1rlNlz7gT7kHM5NYi_hjVg,30232
16
- robotcode/robot/diagnostics/namespace.py,sha256=IwWie61qd5iGMdpI285IH0jKgJWS5xRmt98lldTHxSw,89539
16
+ robotcode/robot/diagnostics/namespace.py,sha256=jCUb5GmMDA6KTr2BnwHD_0Mp_gTg1XGskUvRYPL7XQ0,89543
17
17
  robotcode/robot/diagnostics/namespace_analyzer.py,sha256=G9xgJ-hPunXxfpKmZEf0xop8sIp4IhjdM3Z3C9vQU-g,50479
18
18
  robotcode/robot/diagnostics/workspace_config.py,sha256=lWNq1KmGGJ9cHFNHn0QTCBHHzgz4AewTw0l-W4TKrj0,1803
19
19
  robotcode/robot/utils/__init__.py,sha256=OjNPMn_XSnfaMCyKd8Kmq6vlRt6mIGlzW4qiiD3ykUg,447
20
- robotcode/robot/utils/ast.py,sha256=p3S6f1mmimI47HVchGezt93jygEqs-oxKeiyqbUm0R4,10241
20
+ robotcode/robot/utils/ast.py,sha256=ynxvXv1SHkAcF07m76ey9_zaGCYXhlPOnny7km-XWSQ,10479
21
21
  robotcode/robot/utils/markdownformatter.py,sha256=0XZZ5wDU2yfzIuShjG7h79PgzMaQJ501WH4YRFcG1VM,11615
22
22
  robotcode/robot/utils/match.py,sha256=ofyfXgrvVddl7a064Dk5Kiqp3a-n_6gTIgqDbL3E80Q,632
23
23
  robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6v2LRN0,1786
24
24
  robotcode/robot/utils/stubs.py,sha256=6-DMI_CQVJHDgG13t-zINKGCRb_Q7MQPm0_AkfhAEvE,748
25
25
  robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
26
26
  robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
27
- robotcode_robot-0.89.0.dist-info/METADATA,sha256=RtASJYgHXtXOaHCWVTYmFv5zam6xe48DBgl9L9ufR88,2240
28
- robotcode_robot-0.89.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
29
- robotcode_robot-0.89.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
30
- robotcode_robot-0.89.0.dist-info/RECORD,,
27
+ robotcode_robot-0.89.1.dist-info/METADATA,sha256=VuJ4h7IuEdwO6JEe29RtBLGmE8YVgLelHbX-ubQjpDw,2240
28
+ robotcode_robot-0.89.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
29
+ robotcode_robot-0.89.1.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
30
+ robotcode_robot-0.89.1.dist-info/RECORD,,