Skip to content

docs: modernize typing guide for Python 3.11+ - #864

Merged
henryiii merged 1 commit into
mainfrom
docs/typing-modernize
Oct 7, 2026
Merged

henryiii merged 1 commit into
mainfrom
docs/typing-modernize

Conversation

@henryiii

@henryiii henryiii commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Mostly hand edited, with an AI review pass.

🤖 AI text below 🤖

Now that 3.10 is dropped (#863), update the typing guide:

  • Remove type comments, typing.Union/List, and from __future__ import annotations examples.
  • Use A | B unions in the examples.
  • Note lazy annotation evaluation in Python 3.14+.
  • Point to collections.abc over the deprecated typing aliases.
  • Mention Ruff instead of flake8.

📚 Documentation preview 📚: https://scientific-python-cookie--864.org.readthedocs.build/

Drop pre-3.10 syntax, type comments, and `from __future__ import
annotations` examples. Use `A | B` unions and note lazy annotations in
3.14.

Assisted-by: ClaudeCode:claude-opus-5-5
@henryiii
henryiii merged commit 55ef55c into main Oct 7, 2026
9 checks passed
@henryiii
henryiii deleted the docs/typing-modernize branch October 7, 2026 16:50
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