1
0
forked from VimPlug/jedi

Fix: Stubs in typeshed weren't loaded properly sometimes, fixes #1434

This commit is contained in:
Dave Halter
2019-12-14 21:24:26 +01:00
parent 3219f14c63
commit 7bdedb40e3

View File

@@ -44,7 +44,7 @@ def _create_stub_map(directory):
if os.path.isfile(init):
yield entry, init
elif entry.endswith('.pyi') and os.path.isfile(path):
name = entry.rstrip('.pyi')
name = entry[:-4]
if name != '__init__':
yield name, path