1
0
forked from Mirrors/itch-dl

Upgrade to Python 3.10+

We can use fancier type annotations now, newer deps, more checkers.
This commit is contained in:
Ryszard Knop
2025-02-14 14:55:54 +01:00
parent d307ae8db7
commit cb08443778
8 changed files with 67 additions and 70 deletions

View File

@@ -1,4 +1,4 @@
from typing import Optional, Any
from typing import Any
import requests
from requests import Session
@@ -9,7 +9,7 @@ from .consts import ITCH_API
class ItchApiClient:
def __init__(self, api_key: str, user_agent: str, base_url: Optional[str] = None) -> None:
def __init__(self, api_key: str, user_agent: str, base_url: str | None = None) -> None:
self.base_url = base_url or ITCH_API
self.api_key = api_key