Skip to content

Commit

Permalink
Added __enter__ and __exit__to Kwargs_To_Disk
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Jan 8, 2024
1 parent fcffb55 commit 29f241a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osbot_utils/base_classes/Kwargs_To_Disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

class Kwargs_To_Disk:

def __enter__(self): return self
def __exit__ (self, exc_type, exc_val, exc_tb): pass

def __init__(self):
self._cache_name = f'{self.__class__.__module__}___{self.__class__.__name__}'
self._local_cache = Local_Cache(cache_name=self._cache_name).setup()
Expand Down

0 comments on commit 29f241a

Please sign in to comment.