Skip to content
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

Merged
merged 5 commits into from
Feb 7, 2024
Merged

Ruff q-z #46

merged 5 commits into from
Feb 7, 2024

Conversation

bandophahita
Copy link
Contributor

No description provided.

@bandophahita bandophahita requested a review from perrygoy February 7, 2024 21:26
Copy link
Member

@perrygoy perrygoy left a 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.*]
Copy link
Member

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")
Copy link
Member

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.

Copy link
Contributor Author

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.

@bandophahita bandophahita merged commit 89b64d7 into ScreenPyHQ:trunk Feb 7, 2024
11 checks passed
@bandophahita bandophahita deleted the ruff_q-z branch February 7, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants