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):
|
if os.path.isfile(init):
|
||||||
yield entry, init
|
yield entry, init
|
||||||
elif entry.endswith('.pyi') and os.path.isfile(path):
|
elif entry.endswith('.pyi') and os.path.isfile(path):
|
||||||
name = entry.rstrip('.pyi')
|
name = entry[:-4]
|
||||||
if name != '__init__':
|
if name != '__init__':
|
||||||
yield name, path
|
yield name, path
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user