Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typing
  • Loading branch information
ShaharNaveh committed Mar 3, 2026
commit 7fe87cf359476d2831612da9ad01f1dfc63b8767
6 changes: 1 addition & 5 deletions scripts/libc_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
import re
import subprocess
import urllib.request
from typing import TYPE_CHECKING

import tomllib

if TYPE_CHECKING:
from collections.abc import Iterator

CPYTHON_VERSION = "3.14"

CONSTS_PATTERN = re.compile(r"\b_*[A-Z]+(?:_+[A-Z]+)*_*\b")
Expand Down Expand Up @@ -162,7 +158,7 @@ def extract_consts(

def consts_from_url(
url: str, *, pattern: re.Pattern = CONSTS_PATTERN, exclude: frozenset[str] = EXCLUDE
) -> str:
) -> frozenset[str]:
"""
Extract all consts from the contents found at the given URL.

Expand Down