mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 23:39:57 +07:00
Update PyRedeclarationInspection to not consider preceding overloads as write elements for the following implementation.
20 lines
220 B
Python
20 lines
220 B
Python
from typing import overload
|
|
|
|
|
|
@overload
|
|
def utf8(value: None) -> None:
|
|
pass
|
|
|
|
|
|
@overload
|
|
def utf8(value: bytes) -> bytes:
|
|
pass
|
|
|
|
|
|
@overload
|
|
def utf8(value: str) -> bytes:
|
|
pass
|
|
|
|
|
|
def utf8(value):
|
|
return None |