mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 07:55:31 +07:00
17 lines
358 B
Python
17 lines
358 B
Python
from typing import final, overload
|
|
|
|
class A:
|
|
@final
|
|
@overload
|
|
def foo(self, a: int) -> int: ...
|
|
|
|
@overload
|
|
def foo(self, a: str) -> str: ...
|
|
|
|
@overload
|
|
def bar(self, a: int) -> int: ...
|
|
|
|
@final
|
|
@overload
|
|
def <warning descr="'@final' should be placed only on the first overload">bar</warning>(self, a: str) -> str: ...
|