You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pyrefly emits a missing-override-decorator warning for the following code:
classA:
def__init__(self):
self.a=1classB(A):
def__init__(self):
self.a=2# ERROR Class member `B.a` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
I would expect this rule to only apply to methods.
Describe the Bug
Pyrefly emits a
missing-override-decoratorwarning for the following code:I would expect this rule to only apply to methods.
Version info
0.52.0
Sandbox Link
https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeSIAxlKnHAAQCCiAOuvR-ZjGPQPp8I6CABcBACjgwoYAJSt2nJVJmFU9ALz0AjGzbVaDAELjG8tku68BQ0RJVyFS5dLBrN9AExsQAGhAAriLQcCTkiCAAxPQAqsFQoqT0YAHolMG46HB6WDzJuABOALaoYugBRdgwBeL4iPRCIrL0ALQAfPRwIgVOnAUwIgEF7GAsIAByFVU99MD4AL5jPv5k-WBQpIQiuEVQFNEACqRrG50YOAT0lJmQAOZDpRCZhGzRAMowMPQAFiIixHBEAB6IGrHgbQiFW5AmDoIGYXCUOBA67oO4PDJw-IFeioABuqGgqGwsCuNwg9wKj0y9FwxExoTYZBE30yLTx1TgT3YWjGAGZCNpvCA2ABtaoFQpwAC6bCKEDoQluLVwHIKBQg3Ba3GuVO2ON5IAlhTGIHm-lQ6QgHIAYtAYBQ0Fg8EQyGagA
(Only applicable for extension issues) IDE Information
No response