1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-08 07:03:16 +01:00

Add 'conn' parameter to gitea_api.common.GiteaModel

This commit is contained in:
2025-07-23 16:35:16 +02:00
parent 165cf14435
commit a5333da38c

View File

@@ -4,13 +4,15 @@ import subprocess
from typing import List
from typing import Optional
from .connection import Connection
from .connection import GiteaHTTPResponse
class GiteaModel:
def __init__(self, data, *, response: Optional[GiteaHTTPResponse] = None):
def __init__(self, data, *, response: Optional[GiteaHTTPResponse] = None, conn: Optional[Connection] = None):
self._data = data
self._response = response
self._conn = conn
def dict(self, exclude_columns: Optional[List[str]] = None):