awesome-python/website
Vinta Chen e0b0dc9c0a
refactor(readme_parser): add _href helper to narrow attrGet return type
Extracts a _href(link) helper that returns link.attrGet('href') narrowed
to str (falling back to '') instead of the raw str|int|float|None union.
Replaces all four attrGet('href') or '' call sites with _href(), fixing
ty errors where the widened union leaked into TypedDict url fields.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-19 21:58:27 +08:00
..
static adjust css 2026-04-19 21:34:14 +08:00
templates feat(website): add sponsors section parsed from README 2026-04-19 21:10:50 +08:00
tests refactor(build): accept Path directly in build() signature 2026-04-19 21:56:06 +08:00
build.py refactor(build): remove StarData TypedDict, loosen load_stars return to dict[str, dict] 2026-04-19 21:57:30 +08:00
fetch_github_stars.py refactor(fetch_github_stars): drop unnecessary keyword-only marker on fetch_batch 2026-04-19 21:55:32 +08:00
readme_parser.py refactor(readme_parser): add _href helper to narrow attrGet return type 2026-04-19 21:58:27 +08:00