Skip to content

Commit

Permalink
Improve typing in python scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller authored and wjakob committed Mar 3, 2024
1 parent 0476804 commit 0d191b4
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 61 deletions.
2 changes: 1 addition & 1 deletion cmake/collect-symbols-pypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import tarfile
import subprocess

funcs = set()
funcs: "set[str]" = set()

files = [
('https://downloads.python.org/pypy/pypy3.9-v7.3.11-macos_arm64.tar.bz2', 'pypy3.9-v7.3.11-macos_arm64/bin/libpypy3.9-c.dylib')
Expand Down
2 changes: 1 addition & 1 deletion cmake/collect-symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from urllib.request import urlopen
import re

funcs = set()
funcs: "set[str]" = set()

for ver in ['3.7', '3.8', '3.9']:
url = f'https://raw.githubusercontent.com/python/cpython/{ver}/PC/python3.def'
Expand Down
2 changes: 1 addition & 1 deletion src/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse
import sys
import sysconfig
import sysconfig # type: ignore

from . import __version__, include_dir, cmake_dir

Expand Down
Loading

0 comments on commit 0d191b4

Please sign in to comment.