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? 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
Testing last origin/main at f1af2a3
File: imports_invalid_removal\bad_boy.py
from PySide6.QtWidgets import ( QSlider, ) from PySide6.QtCore import ( Qt, Qt, ) class TimeSliderControl(QSlider): def __init__(self, parent=None): super().__init__(Qt.Horizontal, parent) self.setMinimum(0) self.setMaximum(100) self.setValue(0)
ruff check --fix bad_boy.py --output-format=concise && ruff format bad_boy.py D:\sources\github\astral-sh\bugs-ruff\imports_invalid_removal\bad_boy.py:8:26: F821 Undefined name `Qt` Found 3 errors (2 fixed, 1 remaining).
File: imports_invalid_removal\good_boy.py
from PySide6.QtWidgets import ( QSlider, ) from PySide6.QtCore import ( Qt, ) class TimeSliderControl(QSlider): def __init__(self, parent=None): super().__init__(Qt.Horizontal, parent) self.setMinimum(0) self.setMaximum(100) self.setValue(0)
>> debug: cmd: ruff check --fix D:\sources\github\astral-sh\bugs-ruff\imports_invalid_removal\good_boy.py --output-format=concise && ruff format D:\sources\github\astral-sh\bugs-ruff\imports_invalid_removal\good_boy.py >> debug: working_dir: D:\sources\github\astral-sh\bugs-ruff\imports_invalid_removal Found 1 error (1 fixed, 0 remaining). 1 file reformatted
Leftover from related issue at #15182
The text was updated successfully, but these errors were encountered:
redefined-while-unused
Avoid removing too many imports in redefined-while-unused (#15585)
98fccec
## Summary Closes #15583.
charliermarsh
Successfully merging a pull request may close this issue.
Testing last origin/main at f1af2a3
File: imports_invalid_removal\bad_boy.py
File: imports_invalid_removal\good_boy.py
Leftover from related issue at #15182
The text was updated successfully, but these errors were encountered: