aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-04-19 16:46:18 +0200
committerChristian Tismer <tismer@stackless.com>2020-04-21 13:20:45 +0200
commit205f77e056cc1bf0b48ac334fb106c1490d84f77 (patch)
treeb20c75523a1976985ee061c1cc52b0e680f441a4 /sources/pyside2/tests
parentb0bfeaf894344e31b5175dbbd3ce371fae5dee5b (diff)
signature: Fix and simplify for mypy compatibility
There was a problem with the typing module for Python2 that showed the wrong name. The generated signature files are further simplified. They no longer contain fancy definitions like "Char", which made little sense and was replaced by "int", which our competitor does as well. The mypy compatibility should be considered mostly complete. Update.. QChar was not changed to "int" but "str" because we got clashes. Therefore, recreation of the registry was necessary. Hard to solve stay the definitions "Virtual, Missing, Invalid, Default, Instance". They are very rarely used for special cases. Mypy cannot see these definitions since the module path does not exist in the file system. I tried hard to fix this by building a mypy plugin, but I seem to be forced to generate real files in a temp dir. This was too much effort. A plugin may make sense in the future when we need to improve the type support. Change-Id: Id80c2da1a4a379a80ec5f3019a916a9c00cc87ff Task-number: PYSIDE-1100 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/tests')
-rw-r--r--sources/pyside2/tests/registry/exists_darwin_5_14_0_ci.py1
-rw-r--r--sources/pyside2/tests/registry/exists_red_hat_enterprise_linux_workstation7_6_5_14_0_ci.py1
-rw-r--r--sources/pyside2/tests/registry/exists_win32_5_14_0_ci.py1
-rw-r--r--sources/pyside2/tests/registry/exists_x86_64_suse_linux_5_14_0_ci.py1
4 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/tests/registry/exists_darwin_5_14_0_ci.py b/sources/pyside2/tests/registry/exists_darwin_5_14_0_ci.py
index 98ec8fcbc..82295c216 100644
--- a/sources/pyside2/tests/registry/exists_darwin_5_14_0_ci.py
+++ b/sources/pyside2/tests/registry/exists_darwin_5_14_0_ci.py
@@ -1,3 +1,4 @@
+recreate
#############################################################################
##
## Copyright (C) 2018 The Qt Company Ltd.
diff --git a/sources/pyside2/tests/registry/exists_red_hat_enterprise_linux_workstation7_6_5_14_0_ci.py b/sources/pyside2/tests/registry/exists_red_hat_enterprise_linux_workstation7_6_5_14_0_ci.py
index e19f8a27c..1a7266b36 100644
--- a/sources/pyside2/tests/registry/exists_red_hat_enterprise_linux_workstation7_6_5_14_0_ci.py
+++ b/sources/pyside2/tests/registry/exists_red_hat_enterprise_linux_workstation7_6_5_14_0_ci.py
@@ -1,3 +1,4 @@
+recreate
#############################################################################
##
## Copyright (C) 2018 The Qt Company Ltd.
diff --git a/sources/pyside2/tests/registry/exists_win32_5_14_0_ci.py b/sources/pyside2/tests/registry/exists_win32_5_14_0_ci.py
index 575236710..7b360284d 100644
--- a/sources/pyside2/tests/registry/exists_win32_5_14_0_ci.py
+++ b/sources/pyside2/tests/registry/exists_win32_5_14_0_ci.py
@@ -1,3 +1,4 @@
+recreate
#############################################################################
##
## Copyright (C) 2018 The Qt Company Ltd.
diff --git a/sources/pyside2/tests/registry/exists_x86_64_suse_linux_5_14_0_ci.py b/sources/pyside2/tests/registry/exists_x86_64_suse_linux_5_14_0_ci.py
index 2bacf6ae7..5fbe713e7 100644
--- a/sources/pyside2/tests/registry/exists_x86_64_suse_linux_5_14_0_ci.py
+++ b/sources/pyside2/tests/registry/exists_x86_64_suse_linux_5_14_0_ci.py
@@ -1,3 +1,4 @@
+recreate
#############################################################################
##
## Copyright (C) 2018 The Qt Company Ltd.