Remove object inheritance

master
Salvo 'LtWorf' Tomaselli 2020-06-02 22:53:55 +07:00
parent 3837a849a3
commit 4ef4d679ac
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 3 additions and 3 deletions

@ -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.
@ -53,9 +53,9 @@ class Relation (object):
'''
__hash__ = None # type: None
def __init__(self, filename : str = '') -> None:
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([])