Type stubs for chardet - Universal encoding detector for Python
Agent Success
Agent success rate when using this tile
65%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.97x
Baseline
Agent success rate without this tile
67%
A utility that prepares stubtest system requirements and allowlist arguments for selected stub distributions, producing a ready-to-run plan for CI.
stdlib and requests on the default platform, returns a de-duplicated, alphabetically sorted list of system packages needed to run stubtest, skipping any distribution that marks stubtest as skipped or omits the platform from its CI platforms. @testwin32, the requirements list is re-evaluated for that platform and excludes distributions not configured for it. @teststdlib/@tests/stubtest_allowlists, including common, platform-only, version-only, combined platform+version, and local version files, returning argument pairs only for files that exist. @test@tests directory and returns allowlist argument pairs in order: the generic allowlist then the platform-specific allowlist when those files exist. @test@generates
from typing import TypedDict, List, Dict, Optional
class StubtestPlan(TypedDict):
system_requirements: List[str]
allowlists: Dict[str, List[str]]
def build_stubtest_plan(distributions: List[str], platform: Optional[str] = None) -> StubtestPlan:
"""
Build stubtest invocation data for the given distributions.
- platform: optional override such as "linux", "darwin", or "win32".
- system_requirements: unique system packages needed to run stubtest on the platform.
- allowlists: mapping of distribution name to stubtest --allowlist arguments (each entry is a list like ["--allowlist", "<path>", ...]).
"""Provides access to stub metadata, platform-aware stubtest requirements, and discovery helpers for stubtest allowlist files so you don't reimplement repository-specific logic.
tessl i tessl/pypi-types-chardet@4.0.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9