mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00

## Summary In https://github.com/astral-sh/ruff/pull/10341, we fixed some false positives in `.pyi` files, but introduced others. This PR effectively reverts the change in #10341 and fixes it in a slightly different way. Instead of changing the _bindings_ we generate in the semantic model in `.pyi` files, we instead change how we _resolve_ them. Closes https://github.com/astral-sh/ruff/issues/10509.
8 lines
151 B
Python
8 lines
151 B
Python
"""Regression test for: https://github.com/astral-sh/ruff/issues/10509"""
|
|
|
|
from foo import Bar as Bar
|
|
|
|
class Eggs:
|
|
Bar: int # OK
|
|
|
|
Bar = 1 # F811
|