Files
openide/python/testData/quickdoc/FunctoolsWraps.py
Petr 5d2d6cc722 PY-23067 Pycharm not picking function metadata from functools.wraps with methods
GitOrigin-RevId: d95c1a8f64a6e58d1a6c6c65866b6ab08aaf71b3
2024-08-28 20:02:44 +00:00

24 lines
403 B
Python

import functools
class Cls:
def foo(self, s: str, b: bool):
"""
Doc text
:param s: str
:param b: bool
:return: None
"""
pass
class Route:
@functools.wraps(Cls.foo)
def __init__(self):
pass
class Router:
@functools.wraps(wrapped=Route.__init__)
def route(self, s: str):
pass
r = Router()
r.<the_ref>route(13)