Switch to dataclass
NamedTuple has some bug that makes dumping broken
This commit is contained in:
parent
ff9f0c10b6
commit
2e5d18f418
@ -22,7 +22,8 @@
|
|||||||
import csv
|
import csv
|
||||||
from itertools import chain, repeat, product as iproduct
|
from itertools import chain, repeat, product as iproduct
|
||||||
from collections import deque
|
from collections import deque
|
||||||
from typing import NamedTuple, FrozenSet, Iterable, List, Dict, Tuple
|
from typing import FrozenSet, Iterable, List, Dict, Tuple
|
||||||
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from relational.rtypes import *
|
from relational.rtypes import *
|
||||||
@ -33,8 +34,8 @@ __all__ = [
|
|||||||
'Header',
|
'Header',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@dataclass(repr=True, unsafe_hash=False, frozen=True)
|
||||||
class Relation(NamedTuple):
|
class Relation:
|
||||||
'''
|
'''
|
||||||
This object defines a relation (as a group of consistent tuples) and operations.
|
This object defines a relation (as a group of consistent tuples) and operations.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user