Starting in v0.3.3, Ruff incorrectly emits F811 on this snippet if it's a .pyi file:
from foo import Bar as Bar
class Eggs:
Bar: int # F811 Redefinition of unused `Bar` from line 1
This shouldn't be flagged as a redefinition, as the Eggs.Bar variable is being defined in a different scope to the global Bar variable, which is being re-exported from the module. The regression bisects to 4b06669 (by me).