-
Notifications
You must be signed in to change notification settings - Fork 119
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
test: add type hints to test_log tests #1009
test: add type hints to test_log tests #1009
Conversation
For the model backend stub, we know that the type won't match, but we don't really care. We could make an abc that both the stub and the real class could inherit from, or we could subclass for the stub, but those seem overkill for this specific use case. It seems unlikely that type hints would show any real-life issues here.
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.
Great, thanks!
@benhoyt do you want a second reviewer for this, or are type hint fixes too minimal? If you do, could you suggest someone? |
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.
Looks good. Nah, just me for review is fine on these low-impact typing fixes.
@benhoyt Resolved the pyproject conflict. |
Minor type hinting to make pyright happy:
Most significant change is that the fake model backend now inherits from the real one.
Partially addresses #1007.