Skip to content

Releases

0.29.1

Choose a tag to compare

@github-actions github-actions released this 11 Nov 09:18
7350016

Typer includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx library-skills in your project. See Develop with AI.

Upgrades

  • ⬆️ Add support for Python 3.15 and 3.15t. PR #2013 by @tiangolo.

Docs

  • 📝 Clarify compatibility changes in the 0.29.0 release notes. PR #2014 by @tiangolo.
  • 📝 Adopt unversioned documentation snippets. PR #2010 by @tiangolo.

Internal

  • 🔥 Remove obsolete documentation snippet generators. PR #2012 by @tiangolo.
  • 🔧 Preserve snippet variants in documentation cleanup. PR #2011 by @tiangolo.
  • ⬆️ Upgrade markdown-include-variants to 0.0.10. PR #2009 by @tiangolo.
  • 🔧 Add an agent skills note to GitHub releases. PR #2008 by @tiangolo.

0.29.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 18:47
f725d98

Features

  • ✨ Use Pydantic for parameter validation. PR #1831 by @svlandeg.

    Typer now uses Pydantic internally to validate command-line parameters. This is a gradual migration focused on preserving compatibility with existing Typer applications. Some validation error messages, help text, and usage output have changed.

    Compatibility changes:

    • Pydantic >=2.5.3 is now a required dependency.
    • click_type has been removed from typer.Option() and typer.Argument(). New ways to provide custom types will be provided with Pydantic, with much more flexibility.
    • Some defaults are now validated more strictly. The previous tuple example's (None, None, None) default now fails validation. Use tuple[str, int, bool] | None with a default of None and check for None before unpacking, as shown in the updated tuple example. This also makes the code more correct, so you could consider this a bug fix, but if you depended on this behavior, there's a change needed in your code.
    • Default datetime parsing now follows Pydantic's rules, accepting Unix timestamps, timezone offsets, and fractional seconds.
    • Callback parameter objects no longer expose Click's .type, .make_metavar(), .human_readable_name, or .type_cast_value(). Custom integrations using these need updating.

Fixes

  • 🐛 Escape terminal controls in Pydantic validation errors. PR #2005 by @tiangolo.

Docs

  • 📝 Explain Pydantic validation in the release notes. PR #2006 by @tiangolo.
  • 🎨 Use the Zensical modern theme for docs. PR #2004 by @tiangolo.
  • 📝 Add AI development guidance and coding agent notices. PR #2003 by @tiangolo.

0.28.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 08:37
bf5cfc1

Fixes

  • 🐛 Ensure that the default option name is not changed by setting a metavar. PR #1957 by @svlandeg.

Docs

  • 🎨 Enable Ruff formatting for Python in Markdown. PR #1978 by @tiangolo.

Internal

0.27.3

Choose a tag to compare

@github-actions github-actions released this 06 Oct 17:23
b15210b

Fixes

  • 🐛 Escape terminal control characters in error messages. PR #1972 by @tiangolo.

Internal

0.27.2

Choose a tag to compare

@github-actions github-actions released this 28 Aug 10:26
99eb220

Refactors

  • ♻️ Create exceptions module and TyperException base class. PR #1942 by @svlandeg.

Docs

  • 🐛 Fix showing fast button as external link in animated terminals in docs. PR #1912 by @phalberg.

Internal

0.27.1

Choose a tag to compare

@github-actions github-actions released this 03 Aug 14:40
fe2aa0e

Features

  • ✨ Make epilog formatting consistent with other parts of the help string. PR #1405 by @svlandeg.

Docs

Internal

0.27.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 19:20
60af34b

Breaking Changes

Internal

0.26.8

Choose a tag to compare

@github-actions github-actions released this 26 Jun 09:22
b210c0e

Fixes

  • 🐛 Make second column of Rich help output reflect the type consistently, even when using metavar. PR #1410 by @svlandeg.
  • 🐛 Fix formatting in NoSuchOption.format_message(). PR #1843 by @foomunleong.

Docs

  • 📝 Update docs badges: remove Publish badge, it doesn't give extra information. PR #1850 by @tiangolo.
  • 📝 Fix formatting for help link to support GitHub-specific overview edge-case. PR #1826 by @phalberg.

Internal

0.26.7

Choose a tag to compare

@github-actions github-actions released this 03 Jun 07:17
4e10334

Fixes

  • 🐛 Respect wait=False when launching URLs with xdg-open. PR #1820 by @patrick91.

0.26.6

Choose a tag to compare

@github-actions github-actions released this 02 Jun 13:47
d2e002a

Fixes

  • 🐛 Ensure that the default of a list argument is used correctly. PR #1821 by @svlandeg.

Internal

  • 👷 Speed up the CI by shuffling the test matrix. PR #1815 by @svlandeg.