Usual mypy workaround
https://github.com/ltworf/typedload/issues/132 https://github.com/python/mypy/issues/9003
This commit is contained in:
parent
177ca5a3ee
commit
5a271dce1d
@ -89,7 +89,7 @@ class Relation:
|
||||
for row in loaded['content']:
|
||||
if len(row) != len(header):
|
||||
raise ValueError(f'Line {row} contains an incorrect amount of values')
|
||||
t_row: Tuple[Optional[Union[int, float, str, Rdate]], ...] = load(row, Tuple[Optional[Union[int, float, str, Rdate]], ...])
|
||||
t_row: Tuple[Optional[Union[int, float, str, Rdate]], ...] = load(row, Tuple[Optional[Union[int, float, str, Rdate]], ...]) # type: ignore
|
||||
content.append(t_row)
|
||||
return Relation(header, frozenset(content))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user