Skip to content

Conversation

@LincolnPuzey
Copy link
Collaborator

Note: PR only changes type hints and tests. No runtime changes.

Follow on from #796

Main fixes are

  • Actor.__call__ now returns correct type. Which is R - The return type for the function.
  • Using @actor() decorator with kwargs, type hints are now provided for the kwargs.
  • Do not allow both fn and kwargs to be provided to the @actor. Should be one or the other.

@LincolnPuzey LincolnPuzey force-pushed the more_actor_type_fixes branch from f53fcf9 to 9c1e378 Compare December 6, 2025 06:40
@LincolnPuzey LincolnPuzey changed the title Fixes to actor type hints Fixes to @actor decorator and Actor class type hints Dec 6, 2025
@LincolnPuzey LincolnPuzey changed the title Fixes to @actor decorator and Actor class type hints Fixes to type hints for @actor decorator and Actor class Dec 6, 2025
@LincolnPuzey LincolnPuzey merged commit aa91cdf into Bogdanp:master Dec 6, 2025
11 checks passed
@LincolnPuzey LincolnPuzey deleted the more_actor_type_fixes branch December 6, 2025 06:56
@LincolnPuzey LincolnPuzey added this to the v2.0.1 milestone Jan 1, 2026
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.

1 participant