From d5043c075646209ef200d66e3f603dcf30c1520c Mon Sep 17 00:00:00 2001 From: kaneryu Date: Fri, 4 Jul 2025 02:05:37 -0500 Subject: [PATCH] Fix for Property, add explicit hint for signal in notify argument --- .gitignore | 2 ++ PySide6-stubs/QtCore.pyi | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 001fe10..16a3576 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ .mypy_cache incoming .idea +.venv/ +*.pyc \ No newline at end of file diff --git a/PySide6-stubs/QtCore.pyi b/PySide6-stubs/QtCore.pyi index ec51829..b6453a3 100644 --- a/PySide6-stubs/QtCore.pyi +++ b/PySide6-stubs/QtCore.pyi @@ -42,7 +42,7 @@ class MetaSignal(type): class Property(object): - def __init__(self, type: type, fget: Optional[Callable] = ..., fset: Optional[Callable] = ..., freset: Optional[Callable] = ..., fdel: Optional[Callable] = ..., doc: str = ..., notify: Optional[Callable] = ..., designable: bool = ..., scriptable: bool = ..., stored: bool = ..., user: bool = ..., constant: bool = ..., final: bool = ...) -> None: ... + def __init__(self, type: type, fget: Optional[Callable] = ..., fset: Optional[Callable] = ..., freset: Optional[Callable] = ..., fdel: Optional[Callable] = ..., doc: str = ..., notify: Optional[Union[Callable, Signal]] = ..., designable: bool = ..., scriptable: bool = ..., stored: bool = ..., user: bool = ..., constant: bool = ..., final: bool = ...) -> None: ... def __call__(self, func: Callable) -> PySide6.QtCore.Property: ... def deleter(self, fdel: Callable) -> PySide6.QtCore.Property: ...