Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
fix: | on dicts is only available with Python-3.9+ (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi authored Aug 28, 2024
1 parent 79e5259 commit 4e88795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eppo_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def convert_context_attributes_to_attributes(
return subject_context

# ignoring type because Dict[str, str] satisfies Dict[str, str | ...] but mypy does not understand
return subject_context.numeric_attributes | subject_context.categorical_attributes # type: ignore
return {**subject_context.numeric_attributes, **subject_context.categorical_attributes} # type: ignore


def convert_attributes_to_context_attributes(
Expand Down
2 changes: 1 addition & 1 deletion eppo_client/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Note to developers: When ready to bump to 4.0, please change
# the `POLL_INTERVAL_SECONDS` constant in `eppo_client/constants.py`
# to 30 seconds to match the behavior of the other server SDKs.
__version__ = "3.5.2"
__version__ = "3.5.3"

0 comments on commit 4e88795

Please sign in to comment.