You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typing for FastHttpSession was added here but the json argument should also allow for lists, not only dictionaries.
Example:
POST /books/bulk
[
{
"title": "The Hitchhiker's Guide to the Galaxy",
"author": "Douglas Adams",
"isbn": "9780345391803",
"genre": "Science Fiction",
"publication_year": 1979,
"description": "A hilarious and thought-provoking adventure through space and time."
},
{
"title": "Pride and Prejudice",
"author": "Jane Austen",
"isbn": "9780141439518",
"genre": "Classic Literature",
"publication_year": 1813,
"description": "A witty exploration of love, class, and social expectations in Regency England."
}
]
Current implementation will show an error with mypy:
error: Argument "json" to "put" of "FastHttpSession" has incompatible type "list[dict[str, object]]"; expected "dict[Any, Any] | None" [arg-type]
Command line
Locustfile contents
-
Python version
3.12.2
Locust version
2.31.2
Operating system
Ubuntu
The text was updated successfully, but these errors were encountered:
Prerequisites
Description
Typing for FastHttpSession was added here but the json argument should also allow for lists, not only dictionaries.
Example:
POST /books/bulk
[
{
"title": "The Hitchhiker's Guide to the Galaxy",
"author": "Douglas Adams",
"isbn": "9780345391803",
"genre": "Science Fiction",
"publication_year": 1979,
"description": "A hilarious and thought-provoking adventure through space and time."
},
{
"title": "Pride and Prejudice",
"author": "Jane Austen",
"isbn": "9780141439518",
"genre": "Classic Literature",
"publication_year": 1813,
"description": "A witty exploration of love, class, and social expectations in Regency England."
}
]
Current implementation will show an error with mypy:
error: Argument "json" to "put" of "FastHttpSession" has incompatible type "list[dict[str, object]]"; expected "dict[Any, Any] | None" [arg-type]
Command line
Locustfile contents
-
Python version
3.12.2
Locust version
2.31.2
Operating system
Ubuntu
The text was updated successfully, but these errors were encountered: