diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-16 08:27:19 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-29 09:58:55 +0000 |
commit | 8471ae7a61b61597d89ac5c28d3cd6e133a47400 (patch) | |
tree | f973fc8f4cd08a0ba7325d8d5f8638cf145bc722 /sources/shiboken6/tests | |
parent | 9289a63d85eaab0a7f286000e07843d3387f8c26 (diff) |
Write conversions as typing.Union[]
Extract all implicit conversions and write them as typing.Union[].
The optional_replacer was fixed, build_brace_pattern needed
a separator to be able to continue.
Missing mappings are added.
Task-number: PYSIDE-1520
Change-Id: I2d8e4e7b8f1586036cc3ec9cf469a27e693e7312
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/tests')
-rw-r--r-- | sources/shiboken6/tests/minimalbinding/brace_pattern_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/minimalbinding/brace_pattern_test.py b/sources/shiboken6/tests/minimalbinding/brace_pattern_test.py index 842cb93e2..e036eafb9 100644 --- a/sources/shiboken6/tests/minimalbinding/brace_pattern_test.py +++ b/sources/shiboken6/tests/minimalbinding/brace_pattern_test.py @@ -112,7 +112,7 @@ class TestBracePattern(unittest.TestCase): self.assertFalse(check(test)) def test_the_brace_pattern(self): - func = re.compile(build_brace_pattern(5) + "$", re.VERBOSE).match + func = re.compile(build_brace_pattern(5, ",") + "$", re.VERBOSE).match for test, result in self.tests: if result: self.assertTrue(func(test)) |