We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
unexpected-spaces-around-keyword-parameter-equals
E251
def foo[T = int](): ... # Unexpected spaces around keyword / parameter equals
https://play.ruff.rs/ae847913-3125-4fe5-88a5-376630dfd337
i think it's best to keep the spaces because it would look strange especially when used with bounds:
def foo[T: int | str=int](): ...
The text was updated successfully, but these errors were encountered:
it type parameters should be consistent with value parameters
def foo[T: int = 1](t: int = 1): ...
Sorry, something went wrong.
pycodestyle
AlexWaygood
Successfully merging a pull request may close this issue.
https://play.ruff.rs/ae847913-3125-4fe5-88a5-376630dfd337
i think it's best to keep the spaces because it would look strange especially when used with bounds:
The text was updated successfully, but these errors were encountered: