aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysidesignal.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-05-22 15:07:06 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-05-27 09:16:44 +0200
commit18faf1283cd6c3b0d606234b8316759bf347946d (patch)
tree2d27e4e8a10fd909f4eb54950acabb111beb0bb6 /sources/pyside6/libpyside/pysidesignal.cpp
parent0c12d05c3331dc6c9d130d130431d4f4054f9942 (diff)
shiboken6: Exclude enums from type checks for function arguments of type sequence
Enums have an __iter__ attribute, which causes them to match in Shiboken::checkIterable(). For example, when passing a string and QDir::Filters to QDirListing(QString,QDir::Filters) QDirListing(QString,QStringList,QDir::Filters={}) the second overload will be picked. Since this is not intended, introduce a new check function Shiboken::checkIterableArgument(), which excludes enums. [ChangeLog][shiboken6] Enumerations will no longer match in function argument checks for "PySequence". Task-number: PYSIDE-2620 Change-Id: I6285b6fa1f4f7f8b19e162c5031409f4c3fe3983 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pysidesignal.cpp')
0 files changed, 0 insertions, 0 deletions