Skip to content

Comments

fix: show full Optional[T] type in help instead of just Optional#645

Open
thakoreh wants to merge 1 commit intogoogle:masterfrom
thakoreh:fix/optional-type-help
Open

fix: show full Optional[T] type in help instead of just Optional#645
thakoreh wants to merge 1 commit intogoogle:masterfrom
thakoreh:fix/optional-type-help

Conversation

@thakoreh
Copy link

Summary

Fixes #508

Optional type args were mistyped in help output.

Root Cause

Used qualname instead of repr() for type.

Fix

Use repr() to get full type representation.

Use repr() instead of __qualname__ to get full type representation.

Fixes google#508
@google-cla
Copy link

google-cla bot commented Feb 24, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

Optional type args are mistyped in help

1 participant