-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Stream sync context is now available to all instances methods a…
…s a `Stream.context` attribute (#2529)
- Loading branch information
1 parent
6256fe5
commit 5500e45
Showing
11 changed files
with
107 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Type aliases for use in the SDK.""" | ||
|
||
from __future__ import annotations | ||
|
||
import sys | ||
import typing as t | ||
|
||
if sys.version_info < (3, 9): | ||
from typing import Mapping # noqa: ICN003 | ||
else: | ||
from collections.abc import Mapping | ||
|
||
if sys.version_info < (3, 10): | ||
from typing_extensions import TypeAlias | ||
else: | ||
from typing import TypeAlias # noqa: ICN003 | ||
|
||
__all__ = [ | ||
"Context", | ||
"Record", | ||
] | ||
|
||
Context: TypeAlias = Mapping | ||
Record: TypeAlias = t.Dict[str, t.Any] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.