Enforce that @override
or @final
appear only on first overload
#9747
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
spec compliance
The new proposed typing spec update for overloads proposes that if an overload has no implementation (e.g. it's in a stub, protocol or ABC), then a
@final
or@override
decorator should appear only on the first overloaded signature and not on subsequent ones.If an implementation is present, the
@final
and@override
must be placed only on the implementation and not on any of the overloads.Pyright should enforce these rules.
The text was updated successfully, but these errors were encountered: