aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/referenceexamples/adding
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-10-26 15:51:05 +0200
committerChristian Tismer <tismer@stackless.com>2021-10-28 16:02:19 +0200
commitd7357265bed4ab1fff539957df0ec7dbe6b954b2 (patch)
treee5d54013011a84951fe3514cb9649260aa9c2464 /examples/declarative/referenceexamples/adding
parentbee4cd31d60f3b35a37a2eb98fdfc60ba76cfe1c (diff)
Signature: re-implement error messages for generic types
Correct error messages for generic types are a non-trivial problem that was a long-standing FIXME. For typing.Union, typing.Iterable and typing.Sequence this is now implemented. Other generic cases will follow. The problem is the isinstance function which does not work for indexed generic types. It must be implemented by hand, broken up and handled recursively with `any` and `all` expressions. [ChangeLog][PySide6] Error message are more correct now when indexed generic types are involved like Union, Sequence and Iterable. Task-number: PYSIDE-1675 Change-Id: Idb9546bcc9dc02801c19a95f51cdbc8ca5427fbb Pick-to: 6.2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/declarative/referenceexamples/adding')
0 files changed, 0 insertions, 0 deletions