v1.1.3
Co-Authored-By: Quentin Torroba <quentin.torroba@mistral.ai> Co-Authored-By: Michel Thomazo <michel.thomazo@mistral.ai> Co-Authored-By: Vincent Guilloux <vincent.guilloux@mistral.ai>
This commit is contained in:
parent
a340a721ea
commit
661588de0c
48 changed files with 1679 additions and 467 deletions
|
|
@ -0,0 +1,17 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from vibe.cli.update_notifier.ports.update_cache_repository import (
|
||||
UpdateCache,
|
||||
UpdateCacheRepository,
|
||||
)
|
||||
|
||||
|
||||
class FakeUpdateCacheRepository(UpdateCacheRepository):
|
||||
def __init__(self, update_cache: UpdateCache | None = None) -> None:
|
||||
self.update_cache: UpdateCache | None = update_cache
|
||||
|
||||
async def get(self) -> UpdateCache | None:
|
||||
return self.update_cache
|
||||
|
||||
async def set(self, update_cache: UpdateCache) -> None:
|
||||
self.update_cache = update_cache
|
||||
Loading…
Add table
Add a link
Reference in a new issue