Skip to content

Commit a008ceb

Browse files
committed
Change annotations to older t.Optional style
1 parent 8e32c41 commit a008ceb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/flareio/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(
3737
tenant_id: t.Optional[int] = None,
3838
session: t.Optional[requests.Session] = None,
3939
api_domain: t.Optional[str] = None,
40-
_auth: AuthBase | None = None,
40+
_auth: t.Optional[AuthBase] = None,
4141
_enable_beta_features: bool = False,
4242
) -> None:
4343
if not api_key:

src/flareio/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import dataclasses
22

3+
import typing as t
4+
35

46
@dataclasses.dataclass(frozen=True)
57
class ScrollEventsResult:
68
metadata: dict
79
event: dict
8-
next: str | None
10+
next: t.Optional[str]

0 commit comments

Comments
 (0)