Fix types

master
Salvo 'LtWorf' Tomaselli 2020-08-23 10:50:51 +07:00
parent 18d6f5ebfb
commit 33a2a21617
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 2 additions and 2 deletions

@ -73,12 +73,12 @@ class Relation(NamedTuple):
return Relation.create_from(header, reader)
@staticmethod
def create_from(header: Iterable[str], content: Iterable[Iterable[str]]) -> 'Relation':
def create_from(header: Iterable[str], content: Iterable[List[str]]) -> 'Relation':
'''
Iterator for the header, and iterator for the content.
'''
header = Header(header)
r_content: List[Tuple[CastValue, ...]] = []
r_content = []
guessed_types = list(repeat({Rdate, float, int, str}, len(header)))
for row in content: