Skip to content

Commit

Permalink
Use Optional as opposed to pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
bne committed Jan 29, 2024
1 parent 57f117d commit fecf70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flagsmith/streaming_manager.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down

0 comments on commit fecf70b

Please sign in to comment.