Files
openide/python/testData/inspections/PyRedeclarationInspection/topLevelOverloadsAndImplementations.py
Semyon Proshev c13fbf623a PY-22971 Fixed: Support @typing.overload in regular Python files, not only in Python stubs
Update PyRedeclarationInspection to not consider preceding overloads as write elements for the following implementation.
2017-05-13 00:17:46 +03:00

24 lines
328 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
def <warning descr="Redeclared 'utf8' defined above without usage">utf8</warning>(value):
return None