Skip to content

Commit

Permalink
typing: GObject: Improve Property hints
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetox committed Nov 1, 2024
1 parent f1fbcdb commit e781352
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/gi-stubs/repository/GObject.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2274,22 +2274,22 @@ class PollFD(GBoxed):
class Property:
def __init__(
self,
getter: Optional[Callable] = None,
setter: Optional[Callable] = None,
type: Type = None,
getter: Optional[Callable[[Any], Any]] = None,
setter: Optional[Callable[[Any, Any], None]] = None,
type: Type[Any] | None = None,
default: Any = None,
nick: str = "",
blurb: str = "",
flags: int = PARAM_READWRITE,
minimum: Any = None,
maximum: Any = None,
): ...
def __call__(self, fget: Callable) -> Property: ...
def __get__(self, instance: Object, klass: Any): ...
def __set__(self, instance: Object, value: Any): ...
) -> None: ...
def __call__(self, fget: Callable[[Any], Any]) -> Property: ...
def __get__(self, instance: Object, klass: Any) -> Any: ...
def __set__(self, instance: Object, value: Any) -> None: ...
def get_pspec_args(self): ...
def getter(self, fget: Callable) -> Property: ...
def setter(self, fset: Callable) -> Property: ...
def getter(self, fget: Callable[[Any], Any]) -> Property: ...
def setter(self, fset: Callable[[Any, Any], None]) -> Property: ...

class PtrArray(GBoxed): ...
class Rand(GBoxed): ...
Expand Down

0 comments on commit e781352

Please sign in to comment.