Skip to content

Commit

Permalink
[py-tx] updated the covaraince of TUpdateRecordValue to allow for mor…
Browse files Browse the repository at this point in the history
…e flexability in derived type varince (#1670)
  • Loading branch information
Mackay-Fisher authored Oct 28, 2024
1 parent 8d10599 commit 911f83a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Note - key is artificially restricted, but it's simple to add more or even
# remove the restriction entirely if eventually needed
TUpdateRecordKey = t.TypeVar("TUpdateRecordKey", str, int, t.Tuple[str, str])
TUpdateRecordValue = t.TypeVar("TUpdateRecordValue")
TUpdateRecordValue = t.TypeVar("TUpdateRecordValue", covariant=True)


@dataclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ class SignalExchangeAPIWithSimpleUpdates(
state.TFetchCheckpoint,
state.TFetchedSignalMetadata,
t.Tuple[str, str],
t.Any,
]
state.TFetchedSignalMetadata,
],
):
"""
An API that conveniently maps directly into the form needed by index.
Expand Down

0 comments on commit 911f83a

Please sign in to comment.