File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
packages/pytest-simcore/src/pytest_simcore/helpers Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,19 @@ def regex_pattern(self) -> str:
6767 msg = "Current version cannot compute regex patterns in case of oneOf. Please go ahead and implement it yourself."
6868 raise NotImplementedError (msg )
6969 if self .anyOf :
70- return "|" .join ([elm .regex_pattern for elm in self .anyOf ])
70+ return "|" .join (
71+ [
72+ elm .regex_pattern
73+ for elm in self .anyOf # pylint:disable=not-an-iterable
74+ ]
75+ )
7176 if self .allOf :
72- return "&" .join ([elm .regex_pattern for elm in self .allOf ])
77+ return "&" .join (
78+ [
79+ elm .regex_pattern
80+ for elm in self .allOf # pylint:disable=not-an-iterable
81+ ]
82+ )
7383
7484 # now deal with non-recursive cases
7585 pattern : str | None = None
You can’t perform that action at this time.
0 commit comments