/
githubmirror
/
gpt-engineer
Обзор
Документация
Войти
/
githubmirror
/
gpt-engineer
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
gpt_engineer/core/version_manager.py
30 строк
917 B
kristiankyvik
deleted all class-level parameter and method docstrings
12 фев 2024, 16:21
12 фев 2024, 16:21
7ad18a4
Код
Авторство
О чём код?
""" Version Manager Module This module provides an abstract base class for a version manager that handles the creation of snapshots for code. Implementations of this class are expected to provide methods to create a snapshot of the given code and return a reference to it. """ from abc import ABC, abstractmethod from pathlib import Path from typing import Union from gpt_engineer.core.files_dict import FilesDict class BaseVersionManager(ABC): """ Abstract base class for a version manager. Defines the interface for version managers that handle the creation of snapshots for code. Implementations of this class are expected to provide methods to create a snapshot of the given code and return a reference to it. """ @abstractmethod def __init__(self, path: Union[str, Path]): pass @abstractmethod def snapshot(self, files_dict: FilesDict) -> str: pass