mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 04:03:20 +07:00
Update PyRedeclarationInspection to not consider preceding overloads as write elements for the following implementation.
18 lines
294 B
Python
18 lines
294 B
Python
from typing import overload
|
|
|
|
|
|
class A:
|
|
@overload
|
|
def utf8(self, value: None) -> None:
|
|
pass
|
|
|
|
@overload
|
|
def utf8(self, value: bytes) -> bytes:
|
|
pass
|
|
|
|
@overload
|
|
def utf8(self, value: str) -> bytes:
|
|
pass
|
|
|
|
def utf8(self, value):
|
|
return None |