将 .py 和 .pyi 后缀名改为了 .vp 和 .vpi 后缀名
This commit is contained in:
1 parent
f79c8ca643
commit
cfc30d735c
322 files changed
+246
-31772
No files matched your search
@@ -2124,9 +2124,12 @@ class ExprCallHandle(BaseHandle):
|
||||
def load_pyi(sha1: str) -> dict[str, ast.ClassDef] | None:
|
||||
if sha1 in pyi_cache:
|
||||
return pyi_cache[sha1]
|
||||
pyi_path = os.path.join(project_root, 'temp', f'{sha1}.pyi')
|
||||
pyi_path = os.path.join(project_root, 'temp', f'{sha1}.vpi')
|
||||
if not os.path.isfile(pyi_path):
|
||||
return None
|
||||
# 回退读取旧缓存 .pyi
|
||||
pyi_path = os.path.join(project_root, 'temp', f'{sha1}.pyi')
|
||||
if not os.path.isfile(pyi_path):
|
||||
return None
|
||||
with open(pyi_path, 'r', encoding='utf-8') as f:
|
||||
pyi_code = f.read()
|
||||
tree = ast.parse(pyi_code)
|
||||
|
||||
Reference in new issue
Block a user