chore: switch to immutabledict

master
Langenfeld 2024-01-17 10:12:05 +01:00
rodzic 689b3bc7af
commit 0ecb1ea2b9
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -2,7 +2,7 @@ import logging
import json
from typing import List, Dict, Union
from frozendict import frozendict
from immutabledict import immutabledict
import requests
import urllib3
@ -68,7 +68,7 @@ class Gitea:
return json.loads(result.text)
return {}
def requests_get(self, endpoint: str, params=frozendict(), sudo=None):
def requests_get(self, endpoint: str, params=immutabledict(), sudo=None):
combined_params = {}
combined_params.update(params)
if sudo:
@ -92,7 +92,7 @@ class Gitea:
def requests_get_paginated(
self,
endpoint: str,
params=frozendict(),
params=immutabledict(),
sudo=None,
page_key: str = "page",
page_limit: int = 0,

Wyświetl plik

@ -1,3 +1,3 @@
requests
pytest
frozendict
immutabledict