Skip to content

Conversation

@VegetarianOrc
Copy link
Collaborator

  • Update docstring for get_start_method_input_and_output_type_annotations to clarify that None means "missing type" while type(None) means "explicitly annotated as None"
  • Add comments explaining why type validation is skipped when handler types are None (relies on service definition for type information)
  • Document why type inspection isn't deferred to @service_handler time (complexity not worth the marginal performance benefit)
  • Add test case for @sync_operation with missing type annotations and no service definition to ensure the error flow is covered

- Update docstring for get_start_method_input_and_output_type_annotations
  to clarify that None means "missing type" while type(None) means
  "explicitly annotated as None"
- Add comments explaining why type validation is skipped when handler
  types are None (relies on service definition for type information)
- Document why type inspection isn't deferred to @service_handler time
  (complexity not worth the marginal performance benefit)
- Add test case for @sync_operation with missing type annotations and
  no service definition to ensure the error flow is covered

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@VegetarianOrc VegetarianOrc requested a review from a team as a code owner January 14, 2026 01:58
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