-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Port implementation from loguru PR #3
Conversation
* origin/master: Add basic CI based on tox (#2)
@Delgan I will move include corner cases in this or in another PR. I'd like to get your opinion on this PR first if you have time and don't mind :) |
Ok, I understand why this shouldn't be evaluated as an error. Point made, but this actually complicates things. Correct me, but would doing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, you know a lot more about mypy plugins than I do, so I don't have much useful to add. I'm learning a lot thanks to your PR. 😁
It looks good. We can improve it gradually afterwards anyway.
Indeed, there are a lot of special cases that can make things complicated. 😁 I'm not sure fixing this worth the trouble. It was just to give an example of the limitations we were going to face. There exist probably other edge cases of that kind, unfortunately. A false positive is more critical than a false negative, though. I don't know how this can be corrected. Surely we should introspect the internal attributes of the logger, if that is possible. Your description of the |
* origin/plugin_impl: Add a case from Delgan
Original PR: Delgan/loguru#276