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

chore: add pyupgrade to ruff #118

Merged
merged 2 commits into from
Sep 9, 2023
Merged

chore: add pyupgrade to ruff #118

merged 2 commits into from
Sep 9, 2023

Conversation

Lash-L
Copy link
Collaborator

@Lash-L Lash-L commented Sep 9, 2023

pyupgrade changes all of our optionals to be | None and a few other changes

@humbertogontijo
Copy link
Collaborator

Oh, is this the new preferred approach? I mean, it makes more sense, but I always had complains from mypy that made me go this way haha

@Lash-L
Copy link
Collaborator Author

Lash-L commented Sep 9, 2023

Yeah this is the preferred approach now, but mypy probably contained before we upgraded our python version as this wasn't supported in 3.8

@humbertogontijo
Copy link
Collaborator

Oh, got it. Thank you

Copy link
Collaborator

@humbertogontijo humbertogontijo 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

@Lash-L Lash-L merged commit 360b240 into Python-roborock:main Sep 9, 2023
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