|
|
|
@ -27,7 +27,7 @@ from typing import List, Union, Set
|
|
|
|
|
from relational.rtypes import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Relation (object):
|
|
|
|
|
class Relation:
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
This object defines a relation (as a group of consistent tuples) and operations.
|
|
|
|
@ -55,7 +55,7 @@ class Relation (object):
|
|
|
|
|
|
|
|
|
|
def __init__(self, filename: str = '') -> None:
|
|
|
|
|
self._readonly = False
|
|
|
|
|
self.content = set() # type: Set[tuple]
|
|
|
|
|
self.content: Set[tuple] = set()
|
|
|
|
|
|
|
|
|
|
if len(filename) == 0: # Empty relation
|
|
|
|
|
self.header = Header([])
|
|
|
|
|