From 8471ae7a61b61597d89ac5c28d3cd6e133a47400 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 16 Mar 2021 08:27:19 +0100 Subject: 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 Reviewed-by: Qt CI Bot --- sources/shiboken6/tests/minimalbinding/brace_pattern_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/shiboken6/tests') 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)) -- cgit v1.2.3