Removing unused memoize funcion (#46)

* Removing unused memoize funcion
This commit is contained in:
Joao Jacome 2023-07-17 11:48:29 +01:00 committed by GitHub
parent 3e43873541
commit 22c658898d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,23 +8,7 @@ import json
import logging
import os
import subprocess
from typing import Any, Callable
def memoize(func: Callable[..., Any]) -> Callable[..., Any]:
"""
Decorator function to cache the results of another function call
"""
cache: dict[Any, Callable[..., Any]] = {}
def memoized_func(*args: Any) -> Any:
if args in cache:
return cache[args]
result = func(*args)
cache[args] = result
return result
return memoized_func
from typing import Any
def get_session(session: str) -> str: