Skip to content

Conversation

@dbrattli
Copy link
Collaborator

Summary

  • Fix tuple and union field indexing to use native Python int instead of Int32 wrapper
  • Fix generic parameter defaults to use UNIT instead of None for type checker compatibility
  • Update reflection functions to return Array instead of list for consistency
  • Fix get_function_elements return type to tuple[TypeInfo, TypeInfo]
  • Update indexed callback parameter types to use Int32 for contravariance compatibility
  • Add or_else and or_else_with overloads for SomeWrapper[None] edge cases
  • Simplify UNIT definition to UNIT: Any = None

This reduces the number of typing issues in the generated Python test code down to 1500 errors (down from 3000 when we started the typing improvements)

@dbrattli dbrattli merged commit b8181b6 into main Dec 27, 2025
33 of 43 checks passed
@dbrattli dbrattli deleted the python-typing-fixes-4 branch December 27, 2025 14:16
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.

2 participants