added type: ignore to unrecognized one line if statement

This commit is contained in:
d.mentock 2022-05-20 12:04:34 +02:00
parent 13f4d77791
commit 570ba8d626
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,7 @@ class Result:
r: Dict[str, Dict[str, Dict[str, Dict[str, Union[np.ma.MaskedArray]]]]] = {}
constituents_ = list(map(int,constituents)) if isinstance(constituents,Iterable) else \
(range(self.N_constituents) if constituents is None else [constituents])
(range(self.N_constituents) if constituents is None else [constituents]) #type: ignore
suffixes = [''] if self.N_constituents == 1 or isinstance(constituents,int) else \
[f'#{c}' for c in constituents_]