Skip to content

Commit 9fe35aa

Browse files
committed
Fix missing optional argument definitions in PostKwargs
This commit introduces `params` and `files` attributes to the PostKwargs class in fasthttp.py, enhancing static type analysis capabilities without affecting existing functionality. These additions ensure more precise argument definitions for methods in FastHttpSession.
1 parent 33fee4e commit 9fe35aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: locust/contrib/fasthttp.py

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class PostKwargs(TypedDict, total=False):
4949
auth: tuple[str | bytes, str | bytes] | None
5050
allow_redirects: bool
5151
context: dict
52+
params: dict | None
53+
files: dict | None
5254

5355
class PutKwargs(PostKwargs, total=False):
5456
json: Any

0 commit comments

Comments
 (0)