Remove object inheritance

This commit is contained in:
Salvo 'LtWorf' Tomaselli 2020-06-02 22:53:55 +02:00
parent 3837a849a3
commit 4ef4d679ac
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF

View File

@ -27,7 +27,7 @@ from typing import List, Union, Set
from relational.rtypes import * from relational.rtypes import *
class Relation (object): 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.
@ -55,7 +55,7 @@ class Relation (object):
def __init__(self, filename: str = '') -> None: def __init__(self, filename: str = '') -> None:
self._readonly = False self._readonly = False
self.content = set() # type: Set[tuple] self.content: Set[tuple] = set()
if len(filename) == 0: # Empty relation if len(filename) == 0: # Empty relation
self.header = Header([]) self.header = Header([])