mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 20:30:49 +00:00
[flake8-bugbear] Ignore __debug__ attribute in B010 (#18357)
<!-- Thank you for contributing to Ruff/ty! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? --> ## Summary Fixes #18353 <!-- What's the purpose of the change? What does it do, and why? --> ## Test Plan <!-- How was it tested? --> Snapshot tests
This commit is contained in:
parent
452f992fbc
commit
e23d4ea027
3 changed files with 13 additions and 0 deletions
|
|
@ -67,3 +67,6 @@ getattr(self.
|
|||
|
||||
import builtins
|
||||
builtins.getattr(foo, "bar")
|
||||
|
||||
# Regression test for: https://github.com/astral-sh/ruff/issues/18353
|
||||
setattr(foo, "__debug__", 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue