Typer 0.29: 'TyperOption' object has no attribute 'type', click_type and typer._types are gone
AttributeError: 'TyperOption' object has no attribute 'type'
TypeError: Option() got an unexpected keyword argument 'click_type'
TypeError: TyperOption.__init__() got an unexpected keyword argument 'type'
ModuleNotFoundError: No module named 'typer._types'
ImportError: cannot import name 'TyperChoice' from 'typer.main'
ImportError: cannot import name 'TyperPath' from 'typer.models'
Short answer: Typer 0.29.0 (9 November 2026) validates parameters with Pydantic and dropped the Click type objects it used before. Code that reads param.type, passes click_type= or type=, or imports TyperChoice, TyperPath or typer._types now crashes, often before --help. Pin typer below 0.29 today, or apply the small changes below, which work on 0.28 and 0.29.
No time to dig in? I fix the build and send you a pull request within 48 hours: $49, card, no account. Still failing, full refund. The free steps are below.
Checked on 10 November 2026 against the sources below.
Why it happens
The 0.29.0 release notes say only that Typer "now uses Pydantic internally to validate command-line parameters" and that some validation messages changed. In the package, each parameter now carries a type_descriptor (a TypeDescriptor with annotation, choices, is_choice and more) where it used to carry a Click type in .type. typer.Option() and typer.Argument() no longer accept click_type, TyperOption and TyperArgument no longer accept type, and the private typer._types module, TyperChoice and TyperPath are gone. Projects that require only typer>=0.x got 0.29.0 on their next fresh install. We reproduced it on 10 November 2026 in two clean virtual environments (Python 3.11, Windows): every line in the error box above came from typer 0.29.0, the same code ran on 0.28.0, and the pin and the helper code below passed on both. At least eight projects reported these failures on GitHub on 9 and 10 November.
You may also see
AttributeError: 'TyperArgument' object has no attribute 'type'Invalid value for '--limit': Input should be a valid integer, unable to parse string as an integer
Fix
- Check it's this:
pip show typersays 0.29.0 or later, and the traceback ends in one of the errors above. With uv:uv pip show typer. - Quickest fix: pin Typer below 0.29 in your requirements,
pyproject.tomlor constraints file, then reinstall:
If you publish the package, release the pin: users who install your current version still get 0.29.typer>=0.26,<0.29 param.typeon a command's parameters (docs generators, tests that walk the CLI): readtype_descriptorwhentypeis missing. On 0.29 the choices of an Enum are Enum members, not strings, so take their value:def param_type(param): """The type object of a Typer parameter, on Typer 0.28 and 0.29.""" return getattr(param, "type", None) or getattr(param, "type_descriptor", None) def param_choices(param): """Allowed values as plain strings, or [] if the parameter is not a choice.""" choices = getattr(param_type(param), "choices", None) or [] return [str(getattr(c, "value", c)) for c in choices]click_type=click.Choice([...]),TyperChoiceorfrom typer._types import ...: remove them and put the allowed values in the type hint. ALiteralor anEnumworks on both versions and still lists the values in--help:from typing import Literal @app.command() def build(runner: Literal["ubuntu", "macos"] = "ubuntu"): ...TyperOption(type=...)orTyperArgument(type=...)built by hand: on 0.29 the argument istype_descriptor, an internal object. Declare the option withtyper.Option()on a function parameter instead, or keep the pin until you can.- Tests that compare error text: 0.29 prints Pydantic's wording.
'bogus' is not one of 'json', 'text'.is nowValue error, 'bogus' is not one of 'json', 'text'., and a bad integer printsInput should be a valid integer, unable to parse string as an integer. Assert on the exit code (still 2) and the option name, not the full sentence. - Run your CLI's
--helpand the test suite on both versions before you lift the pin:pip install "typer==0.28.0", thenpip install "typer==0.29.0".
Get it fixed: $49
Pay by card, no account needed. Pull request within 48 hours; build still failing, full refund.
How it works: 1. Pay on Gumroad; the checkout asks for the repository. 2. Invite my GitHub user, Donrulezz, to that repository only (private is fine), or email a zip with the failing log to hello@deadlinefix.com. 3. You get a pull request with a list of every change; you review, merge and deploy. I never ask for cloud passwords or production keys.
Who does the work: me, Ashish, the owner of this site, based in India. My public code and tools are on GitHub: github.com/Donrulezz.
Watch out
isinstance(cmd, click.Group)is False for a Typer app, but that is not new in 0.29: Typer has shipped its own copy of Click since 0.26.0 (26 May 2026). We saw the same result on 0.28.0. Checkhasattr(cmd, "commands")instead.type_descriptoris not documented. Typer calls the Pydantic move "a gradual migration", so it can change again in 0.30. Keep the helper in one place and cap the version you tested, for exampletyper<0.30.- In
--helpon 0.29, boolean options such as--install-completionshow<bool>. Snapshot tests of help output need new snapshots. - We tested on Python 3.11 with rich 15.0.0. If Typer ships a 0.29.x that restores any of these names, we will note it here.
Sources
- Typer release notes: 0.29.0, "Use Pydantic for parameter validation" (9 November 2026)
- Typer pull request #1831: Use Pydantic for parameter validation
- Typer release notes: 0.26.0 vendors Click
- pyrite issue #1432: TyperOption and TyperArgument no longer have .type
- PyneCore issue #109: No module named 'typer._types'
- ComPWA/policy issue #802: TyperChoice and click_type removed
Other errors breaking soon
- GitHub Actions: "Event 'pull_request_target' is not allowed to trigger Actions workflows"
- Unable to display RD Web Access: Chrome 158 and Edge 159 turn off XSLT
- OpenAI Agent Builder shuts down on 30 November 2026: export your workflows, keep ChatKit, move prompt objects
- Claude Sonnet 4.5 retires on 30 November 2026: the 400 errors on Sonnet 5.5 and the fix
- Exchange Online POP and IMAP: TLS 1.0 and 1.1 refused, imap-legacy.office365.com gone
- Windows KB5127648: 802.1X Wi-Fi, wired and VPN sign-in fails (NTLMv1 SSO blocked)
- Firebase: Runtime Node.js 20 was decommissioned
- Firebase Hosting deploy fails: 403 "Permission denied to get service [firebasehosting.googleapis.com]"
- GitHub webhooks: "Failed to connect to host" after GitHub added 3 webhook IP ranges (29 October 2026)
- AWS CodeBuild: Unknown runtime version named '20' of nodejs
- Google Cloud Python: non-supported Python version (3.10)
- Azure OpenAI o1, o3, o3-mini and o4-mini retired on 19 November 2026: 410 Gone
- OpenAI: "The model โฆ has been deprecated" or "Model not found" after a shutdown
- Nextcloud desktop 35.0.1 won't start: "UNIQUE constraint failed: metadata.inode"
- Contact Form 7 6.2: "Composer detected issues in your platform" (PHP 8.3 required)
- Biome 2.6: biome check fails on README.md and YAML files after the upgrade
- pytest 9.2: xdist_group tests run on different workers (--dist loadgroup)
- WordPress 7.2 ignores data-wp-init--, data-wp-watch-- and data-wp-run-- directives
- Ubuntu 26.04 upgrade stops with "Unable to upgrade MySQL" (mysql_native_password accounts)
- Excel for Mac crashes when you refresh a pivot table (version 16.114)
- Outlook.com / Hotmail rejects your email: "Message lacks SPF/DKIM/DMARC Auth Records (AS9031519)"
- HubSpot Pipelines API V1 stops on 4 December 2026: move /crm-pipelines/v1/pipelines calls (and the n8n HubSpot node's stage lists)
- Upload button does nothing in Office panes and small windows: "File chooser dialog was suppressed" (400x300)
- react-dropzone ignores dropped files in Chrome 157: SecurityError on FileSystemFileHandle.getFile()
- Playwright v1.64.1 Docker image now has Node 26: "Cannot read properties of undefined (reading 'prototype')"
- Playwright for Python 1.65 in Docker: driver/node: error while loading shared libraries: libatomic.so.1
- NumPy 2.4+: einsum with optimize=True returns wrong results for bool and small-integer arrays