robotcode-robot 0.74.0__py3-none-any.whl → 0.76.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1131,12 +1131,22 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
1131
1131
  if name_token is None:
1132
1132
  return
1133
1133
 
1134
+ found = False
1134
1135
  entries = self.namespace.get_import_entries()
1135
1136
  if entries and self.namespace.document:
1136
1137
  for v in entries.values():
1137
1138
  if v.import_source == self.namespace.source and v.import_range == range_from_token(name_token):
1138
- if v not in self._namespace_references:
1139
- self._namespace_references[v] = set()
1139
+ for k in self._namespace_references:
1140
+ if type(k) == type(v) and k.library_doc.source_or_origin == v.library_doc.source_or_origin:
1141
+ self._namespace_references[k].add(
1142
+ Location(self.namespace.document.document_uri, v.import_range)
1143
+ )
1144
+ found = True
1145
+ break
1146
+ if not found:
1147
+ if v not in self._namespace_references:
1148
+ self._namespace_references[v] = set()
1149
+ break
1140
1150
 
1141
1151
  def visit_ResourceImport(self, node: ResourceImport) -> None: # noqa: N802
1142
1152
  if get_robot_version() >= (6, 1):
@@ -1146,12 +1156,22 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
1146
1156
  if name_token is None:
1147
1157
  return
1148
1158
 
1159
+ found = False
1149
1160
  entries = self.namespace.get_import_entries()
1150
1161
  if entries and self.namespace.document:
1151
1162
  for v in entries.values():
1152
1163
  if v.import_source == self.namespace.source and v.import_range == range_from_token(name_token):
1153
- if v not in self._namespace_references:
1154
- self._namespace_references[v] = set()
1164
+ for k in self._namespace_references:
1165
+ if type(k) == type(v) and k.library_doc.source_or_origin == v.library_doc.source_or_origin:
1166
+ self._namespace_references[k].add(
1167
+ Location(self.namespace.document.document_uri, v.import_range)
1168
+ )
1169
+ found = True
1170
+ break
1171
+ if not found:
1172
+ if v not in self._namespace_references:
1173
+ self._namespace_references[v] = set()
1174
+ break
1155
1175
 
1156
1176
  def visit_LibraryImport(self, node: LibraryImport) -> None: # noqa: N802
1157
1177
  if get_robot_version() >= (6, 1):
@@ -1161,9 +1181,19 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
1161
1181
  if name_token is None:
1162
1182
  return
1163
1183
 
1184
+ found = False
1164
1185
  entries = self.namespace.get_import_entries()
1165
1186
  if entries and self.namespace.document:
1166
1187
  for v in entries.values():
1167
1188
  if v.import_source == self.namespace.source and v.import_range == range_from_token(name_token):
1168
- if v not in self._namespace_references:
1169
- self._namespace_references[v] = set()
1189
+ for k in self._namespace_references:
1190
+ if type(k) == type(v) and k.library_doc.source_or_origin == v.library_doc.source_or_origin:
1191
+ self._namespace_references[k].add(
1192
+ Location(self.namespace.document.document_uri, v.import_range)
1193
+ )
1194
+ found = True
1195
+ break
1196
+ if not found:
1197
+ if v not in self._namespace_references:
1198
+ self._namespace_references[v] = set()
1199
+ break
@@ -48,6 +48,7 @@ class CacheConfig(ConfigBase):
48
48
  save_location: CacheSaveLocation = CacheSaveLocation.WORKSPACE_STORAGE
49
49
  ignored_libraries: List[str] = field(default_factory=list)
50
50
  ignored_variables: List[str] = field(default_factory=list)
51
+ ignore_arguments_for_library: List[str] = field(default_factory=list)
51
52
 
52
53
 
53
54
  @config_section("robotcode.analysis.robot")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotcode-robot
3
- Version: 0.74.0
3
+ Version: 0.76.0
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://github.com/sponsors/d-biehl
@@ -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.74.0
29
+ Requires-Dist: robotcode-core==0.76.0
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,20 +1,20 @@
1
1
  robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- robotcode/robot/__version__.py,sha256=LTGPFi35Sb0BOcZvETsqbg87vHXhQDdmzQA9fLg4Wro,23
2
+ robotcode/robot/__version__.py,sha256=NLzZr35l5Xo_Hp0czW1LMpxi5-_GklXVkzMFLwdFUcI,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
6
6
  robotcode/robot/config/model.py,sha256=QzniYg-pxQucKJDg7_lSodWg6DKwhTaVf_wN3biUXCk,86499
7
7
  robotcode/robot/config/utils.py,sha256=c_WZg39DJgM6kXcAH_h-v68qhf1eStJ0TslTawaJoZw,2827
8
8
  robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- robotcode/robot/diagnostics/document_cache_helper.py,sha256=mH-LGVjBHilKpmKa0_yPdxLOa3guk4QmJCmLlnU4O1I,19951
9
+ robotcode/robot/diagnostics/document_cache_helper.py,sha256=6CXzKc46NSCsKVioVSOHjAvZFW-nU7a1Pb4AZ6smBow,20862
10
10
  robotcode/robot/diagnostics/entities.py,sha256=m_AXtaMGrkk7f7oVOQc90-gA21y-sHiMbsxxI_YrmWc,11084
11
11
  robotcode/robot/diagnostics/errors.py,sha256=VavgWYuHoW5sTT16j2rl9hxMhWxBKNSFsNmHWPzARQQ,1413
12
- robotcode/robot/diagnostics/imports_manager.py,sha256=_sTLlw8VCpl2Z7xCmv4JAApzOyKH-PRzRgqovPbhInE,55303
13
- robotcode/robot/diagnostics/library_doc.py,sha256=xbES1fiUFF4JMvUzPt2bv_vxNGbk04EecmWXXMlq11E,97862
12
+ robotcode/robot/diagnostics/imports_manager.py,sha256=UkOFMMwmstLEgl-gD_WnBnbwZk6iJklLKEgerjLuXxs,56004
13
+ robotcode/robot/diagnostics/library_doc.py,sha256=KNwaudGA4u9Eu9-fMbRxRAlp16hADGwUjfjQnnsOJO0,97047
14
14
  robotcode/robot/diagnostics/model_helper.py,sha256=wkh2ltduJkl8YPU1UVltgrpRAgLZEAOqgfSsaSF9X54,29858
15
- robotcode/robot/diagnostics/namespace.py,sha256=NM6T6JkHp5dYee9Cp1isHSAZrVpGI6jKryWbSZ2lw0c,83157
16
- robotcode/robot/diagnostics/namespace_analyzer.py,sha256=OeHKOLfwL5qIDKWTdEhzYYAbTP5CkGIVFjnhJSn03m0,48508
17
- robotcode/robot/diagnostics/workspace_config.py,sha256=WbHH8R3KSX-ryPgUYgBnR6gPMpTST2o98Mqyp4p6liw,1729
15
+ robotcode/robot/diagnostics/namespace.py,sha256=6fzLxf-fzajA5bULcQTIhEQ0mZNjBiuyaduj5jJk7Bk,83703
16
+ robotcode/robot/diagnostics/namespace_analyzer.py,sha256=tElI2NzcCRnsvPqv7wYaV2p5E22VyqEwQQ90FOOjadI,50086
17
+ robotcode/robot/diagnostics/workspace_config.py,sha256=lWNq1KmGGJ9cHFNHn0QTCBHHzgz4AewTw0l-W4TKrj0,1803
18
18
  robotcode/robot/utils/__init__.py,sha256=OjNPMn_XSnfaMCyKd8Kmq6vlRt6mIGlzW4qiiD3ykUg,447
19
19
  robotcode/robot/utils/ast.py,sha256=N7PobxXjpPWwv6UBa-GBn5wn6RAsiRm8unP6UZt0P6M,10193
20
20
  robotcode/robot/utils/markdownformatter.py,sha256=IVVnCYJLpX8-sK73n3AjtjBVirB-Xa3U2ZudAtFUOD0,11621
@@ -23,7 +23,7 @@ robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6
23
23
  robotcode/robot/utils/stubs.py,sha256=6-DMI_CQVJHDgG13t-zINKGCRb_Q7MQPm0_AkfhAEvE,748
24
24
  robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
25
25
  robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
26
- robotcode_robot-0.74.0.dist-info/METADATA,sha256=dvQbxcTHFkkX9-fpTchNwa7XdtwQduhsFNz4ts0M_aI,2209
27
- robotcode_robot-0.74.0.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
28
- robotcode_robot-0.74.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
29
- robotcode_robot-0.74.0.dist-info/RECORD,,
26
+ robotcode_robot-0.76.0.dist-info/METADATA,sha256=G8-wf6vloSZPhbM3vvqgtVRCXXfff5B86I30Ic1X-ys,2209
27
+ robotcode_robot-0.76.0.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
28
+ robotcode_robot-0.76.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
29
+ robotcode_robot-0.76.0.dist-info/RECORD,,