Skip to content

Type checking operators #746

Answered by nolar
heilerich asked this question in Q&A
Apr 29, 2021 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

No, all arguments are not needed. It seems, the problem is not with the arguments, but specifically with memo: kopf.Memo. The callback type is declared to also accept any kind of object (defined as AnyMemo=Union[Memo, object]), but it does not work as expected when the actual kwarg is more specific than the expected callback type. I'll take a look at how this can be improved.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@heilerich
Comment options

@nolar
Comment options

@heilerich
Comment options

@nolar
Comment options

@reegnz
Comment options

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