Skip to content

Ship py.typed and type-check with mypy - #21

Merged
cssho merged 2 commits into
masterfrom
typed
Oct 27, 2026
Merged

cssho merged 2 commits into
masterfrom
typed

Conversation

@cssho

@cssho cssho commented Oct 27, 2026

Copy link
Copy Markdown
Owner
  • Add md_condition/py.typed and the Typing :: Typed classifier so downstream type checkers use the package's annotations (confirmed in both the wheel and the sdist)
  • Add mypy + types-Markdown to the dev group; [tool.mypy] strict = true over md_condition and tests; run uv run mypy in the lint job
  • Fix what strict mode flagged: **kwargs: Any, values: Iterable[object], a None check in _closes_fence, and test parameter annotations. No behavior change

Local: mypy clean; 50 tests pass on the locked deps and on py3.10 + Markdown 3.2.

🤖 Generated with Claude Code

https://claude.ai/code/session_012pKTVb5TrGn27R29rHHNck

cssho and others added 2 commits October 28, 2026 00:49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012pKTVb5TrGn27R29rHHNck
# Conflicts:
#	.github/workflows/pythonapp.yml
#	CLAUDE.md
#	pyproject.toml
#	uv.lock
@cssho
cssho merged commit 574a187 into master Oct 27, 2026
10 checks passed
@cssho
cssho deleted the typed branch October 27, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant