Skip to content

Commit

Permalink
use Union[type1, type2] instead of type1|type2
Browse files Browse the repository at this point in the history
  • Loading branch information
issamansur committed Sep 27, 2023
1 parent 7cd7e87 commit bea4eb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locust_influxdb_listener/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from types import TracebackType
from typing import Optional, Dict
from typing import Optional, Dict, Union
from datetime import datetime
import traceback
import logging
Expand Down Expand Up @@ -134,7 +134,7 @@ def request(
response_length: int,
response: any,
context: any,
exception: Exception | HTTPError,
exception: Union[Exception, HTTPError],
start_time: Optional[datetime] = None,
url: Optional[str] = None
) -> None:
Expand Down Expand Up @@ -200,7 +200,7 @@ def __listen_for_requests_events(
response_length: int,
response: any,
context: any,
exception: Exception | HTTPError,
exception: Union[Exception, HTTPError],
start_time: datetime,
url: str
) -> None:
Expand Down

0 comments on commit bea4eb0

Please sign in to comment.