mirror of https://github.com/astral-sh/ruff
## Summary
This PR enables us to resolve attribute accesses within files, at least
for static and class methods. For example, we can now detect that this
is a function access (and avoid a false-positive):
```python
class Class:
@staticmethod
def error():
return ValueError("Something")
# OK
raise Class.error()
```
Closes #5487.
Closes #5416.
|
||
|---|---|---|
| .. | ||
| analyze | ||
| binding.rs | ||
| context.rs | ||
| definition.rs | ||
| globals.rs | ||
| lib.rs | ||
| model.rs | ||
| node.rs | ||
| reference.rs | ||
| scope.rs | ||
| star_import.rs | ||