diff options
author | Łukasz Patron <priv.luk@gmail.com> | 2025-05-22 20:30:05 +0200 |
---|---|---|
committer | Łukasz Patron <priv.luk@gmail.com> | 2025-05-23 12:11:41 +0200 |
commit | 78825180c57f0e05a31bf99217210686e0314490 (patch) | |
tree | b1b47856641dba603e2fffac5f6b27a4d20bef5b /examples/qml/usingmodel/usingmodel.pyproject | |
parent | 03de4672557d80b34f9c9ef1e654a4117c621e65 (diff) |
pyi_generator.py: Pass all args/kwargs to original formatannotation()
Python 3.14 changed formatannotation() function signature by adding `*,
quote_annotation_strings=True` at the end of it.
Since we only care about avoiding `text.removeprefix('typing.')`, let's
just pass extra args/kwargs as is to keep compatibility with < 3.14.
[1] https://github.com/python/cpython/pull/124669
Change-Id: Ic115ed5cc8766cdf60286e88f6cfa79e263f64c9
Reviewed-by: Łukasz Patron <priv.luk@gmail.com>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/qml/usingmodel/usingmodel.pyproject')
0 files changed, 0 insertions, 0 deletions