diff options
| author | Ece Cinucen <ece.cinucen@qt.io> | 2025-02-19 15:52:51 +0100 |
|---|---|---|
| committer | Ece Cinucen <ece.cinucen@qt.io> | 2025-02-27 17:02:21 +0100 |
| commit | 00a5b350ec3d6f552ad0753d9c8fdbde4464d9ad (patch) | |
| tree | c2eaad1be907faaa4e4797f0eca054ccfda829d5 /sources/pyside6/libpyside/pysideproperty.cpp | |
| parent | f351f1e572d2712c735a361b08e45eeb4149f25f (diff) | |
Improve type annotations, first step
Import Callable, Iterable and Sequence from collections.abc,
since using them from typing is deprecated.
Pick-to: 6.8
Task-number: PYSIDE-3012
Change-Id: I131c00005df410fdaa40b338a2a728512269aaa0
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/libpyside/pysideproperty.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/pysideproperty.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sources/pyside6/libpyside/pysideproperty.cpp b/sources/pyside6/libpyside/pysideproperty.cpp index 7c0400051..84d6be2d2 100644 --- a/sources/pyside6/libpyside/pysideproperty.cpp +++ b/sources/pyside6/libpyside/pysideproperty.cpp @@ -471,19 +471,19 @@ namespace PySide::Property { static const char *Property_SignatureStrings[] = { "PySide6.QtCore.Property(self,type:type," - "fget:typing.Optional[typing.Callable[[typing.Any],typing.Any]]," - "fset:typing.Optional[typing.Callable[[typing.Any,typing.Any],None]]," - "freset:typing.Optional[typing.Callable[[typing.Any,typing.Any],None]]," + "fget:typing.Optional[collections.abc.Callable[[typing.Any],typing.Any]]," + "fset:typing.Optional[collections.abc.Callable[[typing.Any,typing.Any],None]]," + "freset:typing.Optional[collections.abc.Callable[[typing.Any,typing.Any],None]]," "doc:str=None," - "notify:typing.Optional[typing.Callable[[],None]]," + "notify:typing.Optional[collections.abc.Callable[[],None]]," "designable:bool=True,scriptable:bool=True," "stored:bool=True,user:bool=False,constant:bool=False,final:bool=False)", - "PySide6.QtCore.Property.deleter(self,fdel:typing.Callable[[typing.Any],None])->PySide6.QtCore.Property", - "PySide6.QtCore.Property.getter(self,fget:typing.Callable[[typing.Any],typing.Any])->PySide6.QtCore.Property", - "PySide6.QtCore.Property.read(self,fget:typing.Callable[[typing.Any],typing.Any])->PySide6.QtCore.Property", - "PySide6.QtCore.Property.setter(self,fset:typing.Callable[[typing.Any,typing.Any],None])->PySide6.QtCore.Property", - "PySide6.QtCore.Property.write(self,fset:typing.Callable[[typing.Any,typing.Any],None])->PySide6.QtCore.Property", - "PySide6.QtCore.Property.__call__(self, func:typing.Callable[...,typing.Any])->PySide6.QtCore.Property", + "PySide6.QtCore.Property.deleter(self,fdel:collections.abc.Callable[[typing.Any],None])->PySide6.QtCore.Property", + "PySide6.QtCore.Property.getter(self,fget:collections.abc.Callable[[typing.Any],typing.Any])->PySide6.QtCore.Property", + "PySide6.QtCore.Property.read(self,fget:collections.abc.Callable[[typing.Any],typing.Any])->PySide6.QtCore.Property", + "PySide6.QtCore.Property.setter(self,fset:collections.abc.Callable[[typing.Any,typing.Any],None])->PySide6.QtCore.Property", + "PySide6.QtCore.Property.write(self,fset:collections.abc.Callable[[typing.Any,typing.Any],None])->PySide6.QtCore.Property", + "PySide6.QtCore.Property.__call__(self, func:collections.abc.Callable[...,typing.Any])->PySide6.QtCore.Property", nullptr}; // Sentinel void init(PyObject *module) |
