add type checking, update deletion function in searchpage, add function to import apparat data from document
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
def create_blob(file):
|
||||
def create_blob(file: str):
|
||||
"""
|
||||
Creates a blob from a file.
|
||||
"""
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import pickle
|
||||
from typing import Any
|
||||
|
||||
|
||||
def load_pickle(data):
|
||||
def load_pickle(data: Any):
|
||||
return pickle.loads(data)
|
||||
|
||||
|
||||
def dump_pickle(data):
|
||||
def dump_pickle(data: Any):
|
||||
return pickle.dumps(data)
|
||||
|
||||
Reference in New Issue
Block a user