-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ruff q-z #46
Ruff q-z #46
Conversation
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 to me! One minor comment that is not blocking. Thanks again!
[mypy-screenpy.*] | ||
[mypy-screenpy_selenium.*] |
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.
🎉
if TYPE_CHECKING: | ||
from screenpy.actor import Actor | ||
|
||
from ..target import Target | ||
|
||
SelfClear = TypeVar("SelfClear", bound="Clear") |
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.
You can actually move these TypeVar
declarations into the TYPE_CHECKING
block, too, if you want. Then you can also import the TypeVar
in there.
I don't have strong opinions on it, but i do like that all the type checking stuff is contained within that block that way.
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.
I'm about to yank all of those typevars out after the ruff changes.
No description provided.