Use ContextSet closer to they way how Python's set works

This commit is contained in:
Dave Halter
2018-09-24 20:21:29 +02:00
parent 8fad33b125
commit 75a02a13d9
22 changed files with 114 additions and 128 deletions

View File

@@ -164,7 +164,7 @@ class TypeshedPlugin(BasePlugin):
code_lines=[],
)
modules = _merge_modules(context_set, stub_module_context)
return ContextSet.from_iterable(modules)
return ContextSet(modules)
# If no stub is found, just return the default.
return context_set
return wrapper