Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return type of QTableWidget.cellWidget #198

Merged
merged 3 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## To be released

### Added
* [#192](https://github.com/python-qt-tools/PyQt5-stubs/pull/192) Add missing platform specific stubs:
* Windows specific: QAxContainer.pyi QtWinExtras.pyi QtCore.QWinEventNotifier
* MacOs X specific: QtMacExtras.pyi QtWidgets.QMacCocoaViewContainer

### Changed
* [#198](https://github.com/python-qt-tools/PyQt5-stubs/pull/198) Corrected `QTableWidget.cellWidget()` to return an an optional `QWidget` instead of a list of `QWidgets`.

### Added
## 5.15.6.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion PyQt5-stubs/QtWidgets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10637,7 +10637,7 @@ class QTableWidget(QTableView):
def setRangeSelected(self, range: QTableWidgetSelectionRange, select: bool) -> None: ...
def removeCellWidget(self, arow: int, acolumn: int) -> None: ...
def setCellWidget(self, row: int, column: int, widget: QWidget) -> None: ...
def cellWidget(self, row: int, column: int) -> typing.List[QWidget]: ...
def cellWidget(self, row: int, column: int) -> typing.Optional[QWidget]: ...
def closePersistentEditor(self, item: typing.Optional[QTableWidgetItem]) -> None: ... # type: ignore[override]
def openPersistentEditor(self, item: typing.Optional[QTableWidgetItem]) -> None: ... # type: ignore[override]
def editItem(self, item: typing.Optional[QTableWidgetItem]) -> None: ...
Expand Down