diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-10-27 10:31:08 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-10-30 13:49:35 +0200 |
| commit | e82812a17888e8bbf30908f790b16433b086a4ef (patch) | |
| tree | 6c63f3c68a5aea41715a0bb339dfa3c4073c036b /build_scripts/platforms/unix.py | |
| parent | 090ce94f241496cdaac68eec4e7175b3e3395764 (diff) | |
Fix losing the default value when the type altered
The changes influence, for instance, the following line:
```python
@staticmethod
def translate(
context: str,
key: str,
disambiguation: Optional[str] = ...,
n: int = ...
) -> str: ...
```
Namely, the `disambiguation` argument now indicates
that it has a default value.
It seems that the `pyi-type` attribute of the modify-argument tag
eats the argument default value.
The commit should add the omitted values if they're provided.
Initial-patch-by: Anton Yablokov (stsav012@gmail.com)
Pick-to: 6.6
Change-Id: Ie3914c3ef13578ef8cfff9ecb8c6c64f167b5360
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/platforms/unix.py')
0 files changed, 0 insertions, 0 deletions
