Skip to content

Incompatible type for get_or_create vs. update? #792

Answered by dantownsend
eddyg asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, this is a bit of a pain. I'd just ignore it for now using # type: ignore.

dict is invariant so is very unforgiving. I'll change this line:

values: t.Dict[t.Union[Column, str], t.Any] = None,

To:

values: t.Union[t.Mapping[Column, t.Any], t.Mapping[str, t.Any], None] = None,

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eddyg
Comment options

Answer selected by eddyg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants