Make it clear in search tests if a stub or a normal definition is expected

This commit is contained in:
Dave Halter committed 2020-03-07 20:43:57 +01:00
1 parent 6bddca011c
commit 58998748e3
2 files changed
+11 -6

No files matched your search

+4
View File
@@ -38,6 +38,10 @@ class _ModuleAttributeName(AbstractNameDefinition):
return compiled.get_string_value_set(self.parent_context.inference_state)
def iter_module_names(*args, **kwargs):
return sorted(set(iter_module_names(*args, **kwargs)))
def iter_module_names(inference_state, paths):
# Python modules/packages
for path in paths: