Open
Description
Feature
Currently, stubgen renders the readwrite properties as a plain class field with inferred type. e.g.
in a pybind11 module
cls.def_property("my_property", &MyClass::GetProperty, &MyClass::SetProperty);
will result in
class MyClass:
my_property: int
Could it be possible to render a @property-@name.setter pair instead, like:
class MyClass:
@property
def my_property(self) -> int: ...
@my_property.setter
def my_property(self, val: int) -> None: ...
Pitch
This way can more clearly reflect the fact that it is a property. I'm happy to help create a PR for this.