-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protocol with Self #641
Comments
yeah BindableLogger should probably return I guess this means a conditional dependency on typing-extensions. |
I use Self, but IDE complains on bind method |
I don't understand this response as a reply to what I wrote, or why you closed the issue, but there's now #642 now open to fix this. |
It was misunderstanding between us, I meant that I used Self as a type hint and it should be ok for any type checkers, but from the first your reply I didn't get that it was a problem on structlog side. I temporarily ended with implementing extra protocol for no type warnings |
Is here a way to implement bind method in protocol without static analyzer complains?
runtime_checkable works fine, and is_instance method too, but IDE points at incorrect type
The text was updated successfully, but these errors were encountered: