diff options
author | 2018-03-29 09:56:24 +0100 | |
---|---|---|
committer | 2018-03-29 09:56:24 +0100 | |
commit | 5fcd1647e5f8f55240492b6df3b3ff15bab86bf7 (patch) | |
tree | 63c348feb999ca358716ebd9f08b0f5259d68ad1 /pysite/database.py | |
parent | Make flake8 happier (diff) | |
parent | Oauth (#45) (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'pysite/database.py')
-rw-r--r-- | pysite/database.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pysite/database.py b/pysite/database.py index add76923..4c2153fe 100644 --- a/pysite/database.py +++ b/pysite/database.py @@ -103,9 +103,11 @@ class RethinkDB: self.log.debug(f"Table created: '{table_name}'") return True - def delete(self, table_name: str, primary_key: Optional[str] = None, - durability: str = "hard", return_changes: Union[bool, str] = False - ) -> Union[Dict[str, Any], None]: + def delete(self, + table_name: str, + primary_key: Union[str, None] = None, + durability: str="hard", + return_changes: Union[bool, str] = False) -> dict: """ Delete one or all documents from a table. This can only delete either the contents of an entire table, or a single document. |