Skip to content

Commit

Permalink
fix: expected environment param default types
Browse files Browse the repository at this point in the history
  • Loading branch information
tyge68 committed Oct 26, 2024
1 parent c69c66b commit 96681f1
Show file tree
Hide file tree
Showing 3 changed files with 963 additions and 1,654 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.formatOnSave": true,
"editor.formatOnSave": false,
"files.exclude": {
".pytest_cache/**/*": true,
"**/*.pyc": true,
Expand Down Expand Up @@ -44,5 +44,6 @@
"editor.defaultFormatter": "charliermarsh.ruff"
},
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true
"python.testing.unittestEnabled": true,
"python.analysis.autoImportCompletions": false
}
2 changes: 1 addition & 1 deletion locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class RequestStats:
Class that holds the request statistics. Accessible in a User from self.environment.stats
"""

def __init__(self, use_response_times_cache=True, environment: Environment = None):
def __init__(self, use_response_times_cache=True, environment: Environment | None = None):
"""
:param use_response_times_cache: The value of use_response_times_cache will be set for each StatsEntry()
when they are created. Settings it to False saves some memory and CPU
Expand Down
Loading

0 comments on commit 96681f1

Please sign in to comment.