Skip to content

Commit

Permalink
Add type hint for getdata()
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Dec 11, 2023
1 parent 10205ad commit 06abaf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust_plugins/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def user_response(environment: Environment, msg, **kwargs):
runner.register_message("synchronizer_response", user_response)


def getdata(u: User):
def getdata(u: User) -> Dict:
if not u.environment.runner: # no need to do anything clever if there is no runner
return next(iterator)

Expand Down

0 comments on commit 06abaf8

Please sign in to comment.