Skip to content

Commit

Permalink
fix: Change post_json type annotation (near#9218)
Browse files Browse the repository at this point in the history
As the previous fails with:
```
  File "/home/ubuntu/repos/nearcore/pytest/tests/loadtest/locust/common/base.py", line 195, in NearNodeProxy
    def post_json(self, method: str, params: list(str)):
                                             ^^^^^^^^^
TypeError: 'type' object is not iterable
```
  • Loading branch information
aborg-dev authored Jun 19, 2023
1 parent 6f48e62 commit c7082de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest/tests/loadtest/locust/common/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def send_tx(self, tx: Transaction, locust_name):
self.request_event.fire(**meta)
return meta["response"]

def post_json(self, method: str, params: list(str)):
def post_json(self, method: str, params: list[str]):
j = {
"method": method,
"params": params,
Expand Down

0 comments on commit c7082de

Please sign in to comment.