Skip to content

Conversation

@tjb9dc
Copy link
Collaborator

@tjb9dc tjb9dc commented Dec 9, 2025

The generated code was checking if LogoFile is not None instead of if logo_file is not None, causing mypy "name not defined" errors when the API wire name differed from the Python snake_case parameter name.

Changed to use key.name.snake_case.safe_name (the parameter name) instead of key.wire_value (the API field name) in the conditional.

🤖 Generated with Claude Code

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

🌱 Seed Test Selector

Select languages to run seed tests for:

  • Python
  • TypeScript
  • Java
  • Go
  • Ruby
  • C#
  • PHP
  • Swift
  • Rust
  • OpenAPI
  • Postman

How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR.

The generated code was checking `if LogoFile is not None` instead of
`if logo_file is not None`, causing mypy "name not defined" errors when
the API wire name differed from the Python snake_case parameter name.

Changed to use `key.name.snake_case.safe_name` (the parameter name)
instead of `key.wire_value` (the API field name) in the conditional.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@tjb9dc tjb9dc force-pushed the fix-mypy-file-upload-conditional branch from 104dafc to 718021f Compare December 9, 2025 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants