Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix CLI help command by updating typer dependency#1190

Open
codegen-sh[bot] wants to merge 2 commits into
developcodegen-sh/codegen:developfrom
codegen-bot/fix-help-commandcodegen-sh/codegen:codegen-bot/fix-help-commandCopy head branch name to clipboard
Open

Fix CLI help command by updating typer dependency#1190
codegen-sh[bot] wants to merge 2 commits into
developcodegen-sh/codegen:developfrom
codegen-bot/fix-help-commandcodegen-sh/codegen:codegen-bot/fix-help-commandCopy head branch name to clipboard

Conversation

@codegen-sh

@codegen-sh codegen-sh Bot commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

Problem

The CLI help command (codegen --help and similar commands) was failing with an error: TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'. This was due to a compatibility issue between the installed version of typer and click.

Solution

Updated the typer dependency in pyproject.toml from typer>=0.12.5 to typer>=0.16.0 to ensure compatibility with the current click version (8.2.1). This fixes the help command functionality while maintaining backward compatibility.

Testing

  • Verified that codegen --help now works correctly
  • Verified that codegen login --help now works correctly
  • Confirmed that the core functionality (login, etc.) continues to work as expected

This change ensures that users can access the CLI help documentation properly.


💻 View my work • 👤 Initiated by Jay Hack • 💬 Initiated in #demoAbout Codegen
⛔ Remove Codegen from PR🚫 Ban action checks

Co-authored-by: Jay Hack <jay@codegen.com>
@codegen-sh codegen-sh Bot requested review from a team and codegen-team as code owners August 12, 2025 23:22
@codecov

codecov Bot commented Aug 12, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@codegen-sh

codegen-sh Bot commented Aug 12, 2025

Copy link
Copy Markdown
Contributor Author

🔍 Check Suite Status for PR #1190

Check Status Commit Time Check Suite Agent trace
pre-commit ⚪ No action 2cdf1d6 Just now Run
GitHub Actions ⚪ No action 2cdf1d6 Just now Run Agent Work
Results & Findings

pre-commit: ✅ Fixed the failing pre-commit check in PR #1190 by updating the requires-python field in pyproje...

💻 View my work🛑 Stop🚫 Ban all checks

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.

0 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.