RUF052: Don't flag assignments to private function arguments #14968
Labels
accepted
Ready for implementation
help wanted
Contributions especially welcome
rule
Implementing or modifying a lint rule
This is a follow up to #14796: attempting to assign a private function parameter still gets flagged in Ruff v0.8.3 (playground)
My primary use case for private parameters is when I need to track what I've seen when recursing through a potentially circular graph:
In most cases, I wouldn't want the caller to have to seed the
_seen
param or even know that it exists, as imo, that's just an implementation detail.The text was updated successfully, but these errors were encountered: