You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That solution could work. There are other underscore-initial public module members in the standard library, though, so the list will probably be expanded at some point.
This change updates the PLC2701 rule to correctly identify os._exit as a non-private member, aligning its behavior with the SLF001 rule. Fixesastral-sh#18143
Summary
Despite its name,
os._exit
is not private; see #6483.import-private-name
(PLC2701) treats it as private, which is inconsistent withprivate-member-access
(SLF001). The two rules should share the same set of exceptionally non-private module members (which is currently justos._exit
).Version
ruff 0.11.10 (b35bf8a 2025-05-15)
The text was updated successfully, but these errors were encountered: