mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-139590: Stricter ruff rules for Tools/wasm (#139752)
This commit is contained in:
parent
a2850a3a91
commit
678e0b818c
5 changed files with 14 additions and 17 deletions
|
|
@ -15,7 +15,6 @@
|
|||
import sys
|
||||
import sysconfig
|
||||
import zipfile
|
||||
from typing import Dict
|
||||
|
||||
# source directory
|
||||
SRCDIR = pathlib.Path(__file__).parents[3].absolute()
|
||||
|
|
@ -134,7 +133,7 @@ def filterfunc(filename: str) -> bool:
|
|||
pzf.writepy(entry, filterfunc=filterfunc)
|
||||
|
||||
|
||||
def detect_extension_modules(args: argparse.Namespace) -> Dict[str, bool]:
|
||||
def detect_extension_modules(args: argparse.Namespace) -> dict[str, bool]:
|
||||
modules = {}
|
||||
|
||||
# disabled by Modules/Setup.local ?
|
||||
|
|
@ -149,7 +148,7 @@ def detect_extension_modules(args: argparse.Namespace) -> Dict[str, bool]:
|
|||
# disabled by configure?
|
||||
with open(args.sysconfig_data) as f:
|
||||
data = f.read()
|
||||
loc: Dict[str, Dict[str, str]] = {}
|
||||
loc: dict[str, dict[str, str]] = {}
|
||||
exec(data, globals(), loc)
|
||||
|
||||
for key, value in loc["build_time_vars"].items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue