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%
Produce a summary of canonical stub and test directories for a distribution inside a typeshed-style repository. The summary must rely on the repository layout helper dependency so that standard library and third-party layouts follow the expected folder structure without manual path guessing.
distribution="stdlib" and repo root /typeshed, report stub /typeshed/stdlib, tests /typeshed/stdlib/@tests, test cases /typeshed/stdlib/@tests/test_cases, and allowlists /typeshed/stdlib/@tests/stubtest_allowlists. @testdistribution="attrs" and repo root /typeshed, report stub /typeshed/stubs/attrs, tests /typeshed/stubs/attrs/@tests, test cases /typeshed/stubs/attrs/@tests/test_cases, and allowlists /typeshed/stubs/attrs/@tests. @teststub, tests, test_cases, and allowlists, relative to the repo root by default or to an override base when provided. @test@generates
from dataclasses import dataclass
from pathlib import Path
@dataclass
class LayoutSummary:
distribution: str
stub_dir: Path
tests_dir: Path
test_cases_dir: Path
allowlists_dir: Path
def describe_distribution_layout(distribution: str, repo_root: Path | str = Path(".")) -> LayoutSummary:
"""Return canonical stub/test locations for the distribution within the repo_root layout."""
def format_layout(summary: LayoutSummary, relative_to: Path | str | None = None) -> str:
"""Return newline-delimited entries like 'stub: <path>' for each layout path."""Canonical path helpers for stub distributions, tests, test cases, and allowlists.
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