mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
(cherry picked from commit d4a90a8da56ca889cf380aa5bc72ac82b0716abc) IJ-CR-148150 GitOrigin-RevId: 235a0e447d84c96e9963235615b07a1caf371e74
57 lines
921 B
Python
57 lines
921 B
Python
""" test docstring inspection"""
|
|
def foo1(a, b):
|
|
"""
|
|
|
|
:param a:
|
|
:param b:
|
|
:return:
|
|
"""
|
|
pass
|
|
|
|
def foo(a, <weak_warning descr="Missing parameter b in docstring">b</weak_warning>, <weak_warning descr="Missing parameter n in docstring">n</weak_warning>):
|
|
"""
|
|
|
|
:param a:
|
|
:return:
|
|
"""
|
|
pass
|
|
|
|
def foo():
|
|
"""
|
|
|
|
:param <weak_warning descr="Unexpected parameter a in docstring">a</weak_warning>:
|
|
:return:
|
|
"""
|
|
pass
|
|
|
|
def compare(a, b, *, key=None):
|
|
"""
|
|
|
|
:param a:
|
|
:param b:
|
|
:param key:
|
|
:return:
|
|
"""
|
|
pass
|
|
|
|
def foo(a, <weak_warning descr="Missing parameter c in docstring">c</weak_warning>):
|
|
"""
|
|
:param a:
|
|
:param <weak_warning descr="Unexpected parameter b in docstring">b</weak_warning>:
|
|
:return:
|
|
"""
|
|
pass
|
|
|
|
|
|
def varargs_undefined(x, *args, y, **kwargs):
|
|
"""
|
|
:param x:
|
|
:param y:
|
|
"""
|
|
pass
|
|
|
|
|
|
def no_parameters_declared(x, y):
|
|
"""
|
|
"""
|