mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Similarly to normal parameters we don't show those keyword arguments that are not explicitly present in function signature and can't be passed in because of absence of **kwargs parameter. Additionally, I enforced the order in which sections appears, so that information about parameters, return value and raised exceptions was always first and also fixed the way we show single star parameter in signatures.
13 lines
234 B
Python
13 lines
234 B
Python
class Base:
|
|
def method(self, **kwargs):
|
|
"""
|
|
:key foo: foo
|
|
:key bar: bar
|
|
:key baz:
|
|
"""
|
|
|
|
|
|
class Sub(Base):
|
|
def met<the_ref>hod(self, *, foo, bar):
|
|
super().method(foo=foo, bar=bar)
|