Skip to content

Releases: fastapi/typer

0.21.0

25 Dec 09:54

Choose a tag to compare

Breaking Changes

Docs

Internal

  • 💚 Move ruff dependency to shared requirements-docs-tests.txt to fix "Build docs" workflow in CI. PR #1458 by @YuriiMotov.
  • ⬆ Bump markdown-include-variants from 0.0.5 to 0.0.8. PR #1442 by @dependabot[bot].
  • 👷 Add pre-commit workflow. PR #1453 by @tiangolo.
  • 👷 Configure coverage, error on main tests, don't wait for Smokeshow. PR #1448 by @YuriiMotov.
  • 👷 Run Smokeshow always, even on test failures. PR #1447 by @YuriiMotov.
  • 🔨 Add Typer script to generate example variants for Python files. PR #1452 by @tiangolo.

0.20.1

19 Dec 16:48

Choose a tag to compare

Features

  • ✨ Add support for standard tracebacks via the env TYPER_STANDARD_TRACEBACK. PR #1299 by @colin-nolan.

Fixes

  • 🐛 Ensure that options_metavar is passed through correctly. PR #816 by @gar1t.
  • 🐛 Ensure an optional argument is shown in brackets, even when metavar is set. PR #1409 by @svlandeg.
  • 🐛 Ensure that the default rich_markup_mode is interpreted correctly. PR #1304 by @svlandeg.

Refactors

Docs

  • 📝 Ensure that bold letters are rendered correctly in printing.md. PR #1365 by @svlandeg.
  • 🩺 Update test badge to only reflect pushes to master. PR #1414 by @svlandeg.
  • 📝 Update console output on the Rich help formatting page. PR #1430 by @svlandeg.
  • 📝 Update emoji used in Rich help formatting tutorial. PR #1429 by @svlandeg.
  • 📝 Remove duplicate explanation how the path is resolved. PR #956 by @dennis-rall.
  • 📝 Update docs to use Typer() more prominently. PR #1418 by @svlandeg.
  • 💄 Use font 'Fira Code' to fix display of Rich panels in docs in Windows. PR #1419 by @tiangolo.

Internal

0.20.0

20 Oct 17:03

Choose a tag to compare

Features

Upgrades

Internal

0.19.2

23 Sep 09:47

Choose a tag to compare

Fixes

  • 🐛 Fix list convertor with an empty list default factory . PR #1350 by @svlandeg.

Refactors

  • 🔥 Drop support for Python 3.7. PR #830 by @kinuax.

Internal

0.19.1

20 Sep 08:58

Choose a tag to compare

Note: this is the last version to support Python 3.7, going forward Typer will require Python 3.8+. And soon Python 3.8 will also be dropped as Python 3.8 reached it's end of life almost a year ago.

Fixes

  • 🐛 Ensure that Optional[list] values work correctly with callbacks. PR #1018 by @solesensei.

0.19.0

20 Sep 08:07

Choose a tag to compare

Features

  • ✨ Support typing.Literal to define a set of predefined choices. PR #429 by @blackary.
  • ✨ Allow setting an environment variable to None in CliRunner.invoke. PR #1303 by @arjenzorgdoc.

Refactors

Docs

  • 📝 Clarify single-command vs multi-command behaviour in README. PR #1268 by @MorgenPronk.

0.18.0

19 Sep 19:21

Choose a tag to compare

Fixes

  • 👽️ Ensure compatibility with Click 8.3.0 by restoring the original value_is_missing function. PR #1333 by @svlandeg.

Upgrades

  • 📌 Remove pin for Click < 8.3.0 now that there's a fix for the changes. PR #1346 by @tiangolo.

0.17.5

19 Sep 18:34

Choose a tag to compare

Fixes

  • ⬇️ Restrict Click to below 8.3.0 to handle changes in the new version. PR #1336 by @svlandeg.

Internal

0.17.4

05 Sep 18:14

Choose a tag to compare

Fixes

  • 🐛 Make sure rich.markup is imported when rendering help text. PR #1290 by @g-arjones.

Internal

0.17.3

30 Aug 12:34

Choose a tag to compare

Features

  • ✨ Allow annotated parsing with a subclass of Path. PR #1183 by @emfdavid.