Make hash raise an error

master
Salvo 'LtWorf' Tomaselli 2020-08-12 15:20:29 +07:00
parent 8d49b393c8
commit bd58442912
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 2 additions and 1 deletions

@ -52,7 +52,8 @@ class Relation:
An empty relation needs a header, and can be filled using the insert()
method.
'''
__hash__ = None # type: None
def __hash__(self):
raise NotImplementedError()
def __init__(self, filename: Optional[Union[str, Path]] = None) -> None:
self._readonly = False