Skip to content

Commit

Permalink
Fix bad type hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Nov 2, 2024
1 parent 11cd620 commit d48db14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ class StatsEntry:
Represents a single stats entry (name and method)
"""

def __init__(self, stats: RequestStats | None, name: str, method: str, use_response_times_cache: bool = False):
def __init__(
self, stats: RequestStats | None, name: str, method: str | None, use_response_times_cache: bool = False
):
self.stats = stats
self.name = name
""" Name (URL) of this stats entry """
Expand Down

0 comments on commit d48db14

Please sign in to comment.