1
0
forked from VimPlug/jedi

Start fixing some of the problems with new typeshed

This commit is contained in:
Dave Halter
2026-04-28 01:41:40 +02:00
parent 2455414d1d
commit ff581e8403
6 changed files with 17 additions and 45 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def load_proper_stub_module(inference_state, grammar, file_io, import_names, mod
# /[...]/stdlib/3/os/__init__.pyi -> stdlib/3/os/__init__
rest = relative_path.with_suffix('')
# Remove the stdlib/3 or third_party/3.6 part
import_names = rest.parts[2:]
import_names = rest.parts[1:]
if rest.name == '__init__':
import_names = import_names[:-1]