Fix annotations for QTableWidget #151#189
Conversation
|
@bluebird75 Go ahead, it's complete. I've confirmed in simple examples that the changes are correct - you can really build complex widget structures just by passing None around ;) |
|
Nice. Unrelated but I want to get started on PyQt6-stubs. Can you rejoin the thread on #69 ? I see that you have a repo with some code for it. |
|
I believe (I already wrote an inline comment here, but I'm not sure if this triggered a notification for anybody involved.) |
|
https://doc.qt.io/qt-5/qtablewidget.html#cellWidget
Looks like it shouldn't be a |
|
Created #198. |
Ok, so here's the PR. I've tested every method and indeed every one of them either returns a
Nonewhen called with invalid values or acceptsNoneas argument, which is convenient regarding use-cases like this:I'll update the PR later today with fixes for
QListWidgetandQTreeWidgetas well.