mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 14:54:36 +07:00
GitOrigin-RevId: 4520138ac657a514b53f2f939521f0336701be46
17 lines
342 B
Python
17 lines
342 B
Python
from typing_extensions import override
|
|
|
|
class Parent:
|
|
def foo(self) -> int:
|
|
return 1
|
|
|
|
def bar(self, x: str) -> str:
|
|
return x
|
|
|
|
class Child(Parent):
|
|
@override
|
|
def foo(self) -> int:
|
|
return 2
|
|
|
|
<warning descr="Missing super method for override">@override</warning>
|
|
def baz() -> int:
|
|
return 1 |