mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-16 21:31:26 +08:00
Fix: Stubs in typeshed weren't loaded properly sometimes, fixes #1434
This commit is contained in:
1 parent
3219f14c63
commit
7bdedb40e3
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user