From fecf70b2e0a96c8f80df9af3955da88069b87288 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Mon, 29 Jan 2024 18:31:16 +0000 Subject: [PATCH] Use Optional as opposed to pipe --- flagsmith/streaming_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flagsmith/streaming_manager.py b/flagsmith/streaming_manager.py index 04251a9..64ac6a7 100644 --- a/flagsmith/streaming_manager.py +++ b/flagsmith/streaming_manager.py @@ -1,6 +1,6 @@ import logging import threading -from typing import Callable, Generator, Protocol, cast +from typing import Callable, Generator, Optional, Protocol, cast import requests import sseclient @@ -20,7 +20,7 @@ def __init__( *args, stream_url: str, on_event: Callable[[StreamEvent], None], - request_timeout_seconds: int | None = None, + request_timeout_seconds: Optional[int] = None, **kwargs ) -> None: super().__init__(*args, **kwargs)