-
Notifications
You must be signed in to change notification settings - Fork 22
Match entity method parameter names #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1038,28 +1038,28 @@ def call_activity( | |
|
|
||
| def call_entity( | ||
| self, | ||
| entity_id: EntityInstanceId, | ||
| entity: EntityInstanceId, | ||
| operation: str, | ||
| input: Optional[TInput] = None, | ||
| ) -> task.Task: | ||
| id = self.next_sequence_number() | ||
|
|
||
| self.call_entity_function_helper( | ||
| id, entity_id, operation, input=input | ||
| id, entity, operation, input=input | ||
| ) | ||
|
|
||
| return self._pending_tasks.get(id, task.CompletableTask()) | ||
|
|
||
| def signal_entity( | ||
| self, | ||
| entity_id: EntityInstanceId, | ||
| operation: str, | ||
| operation_name: str, | ||
| input: Optional[TInput] = None | ||
| ) -> None: | ||
| id = self.next_sequence_number() | ||
|
|
||
| self.signal_entity_function_helper( | ||
| id, entity_id, operation, input | ||
| id, entity_id, operation_name, input | ||
|
Comment on lines
1061
to
+1062
|
||
| ) | ||
|
|
||
| def lock_entities(self, entities: list[EntityInstanceId]) -> task.Task[EntityLock]: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency and maintainability, the helper function
call_entity_function_helpershould have its parameter name updated fromentity_id(line 1155) toentityto match the public method parameter name. While the code works because arguments are passed positionally, this naming inconsistency can cause confusion during maintenance.