You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order pass mypy the last arg in the type of SignalExchangeAPIWithSimpleUpdates was made generic.
Previous value: state.TFetchedSignalMetadata which gave error threatexchange/exchanges/signal_exchange_api.py:269: error: Variance of TypeVar "state.TFetchedSignalMetadata" incompatible with variance in parent type [type-var]
Having this be generic is risky because SignalExchangeAPIWithSimpleUpdates is one of the single most important interface in pytx
Notes from brief attempt to fix: When Barrett attempted to replace value with state.TUpdateRecordValue mypy broke further along in files using SignalExchangeAPIWithSimpleUpdates so there may more bugs hidden behind this issue already.
The text was updated successfully, but these errors were encountered:
Dcallies
changed the title
Typing of SignalExchangeAPIWithSimpleUpdates is too Generic | remove use of t.Any
[py-tx] Typing of SignalExchangeAPIWithSimpleUpdates is too Generic | remove use of t.Any
Dec 8, 2023
See #1254
In order pass
mypy
the last arg in the type ofSignalExchangeAPIWithSimpleUpdates
was made generic.Previous value:
state.TFetchedSignalMetadata
which gave errorthreatexchange/exchanges/signal_exchange_api.py:269: error: Variance of TypeVar "state.TFetchedSignalMetadata" incompatible with variance in parent type [type-var]
Having this be generic is risky because
SignalExchangeAPIWithSimpleUpdates
is one of the single most important interface in pytxNotes from brief attempt to fix: When Barrett attempted to replace value with
state.TUpdateRecordValue
mypy broke further along in files usingSignalExchangeAPIWithSimpleUpdates
so there may more bugs hidden behind this issue already.The text was updated successfully, but these errors were encountered: