diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2023-08-01 18:56:06 +0200 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2023-08-02 08:01:11 +0000 |
| commit | 6280d50601705798d4fd96595b8c54fba436918f (patch) | |
| tree | 0c660c432d3637fd7cd9d6f3aa7e0983064138c0 /sources/pyside6/doc/gettingstarted | |
| parent | 896320d7df65a1b4d57e8b65caf4342efdae53e1 (diff) | |
stubs: setParent should accept an Optional object
The current stubs specify the type of the required argument,
for example:
w = QWidget()
help(w.setParent)
reports:
setParent(self, parent: PySide6.QtWidgets.QWidget) -> None
which makes some IDEs to complain when passing None, behavior
that it's accepted as well.
This change adds an Optional to the parameter.
Pick-to: 6.5
Fixes: PYSIDE-2235
Change-Id: I57b54f47aee6783b1b7027981b5d282798d57ad4
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/gettingstarted')
0 files changed, 0 insertions, 0 deletions
