using types; way too hard (used gemini a lit bit for help); should have done it from start

This commit is contained in:
2025-08-27 15:52:17 +05:30
parent 23299b7bb2
commit 5216794aeb
10 changed files with 289 additions and 93 deletions

View File

@@ -6,6 +6,8 @@ Defines domain-specific exceptions for:
- API operation constraints
"""
from __future__ import annotations
class TermsOfServiceNotAcceptedError(Exception):
"""Indicates unaccepted Terms of Service for critical API operations.
@@ -15,7 +17,7 @@ class TermsOfServiceNotAcceptedError(Exception):
url (str): URL for Terms of Service acceptance portal
"""
def __init__(self, message, url):
def __init__(self, message: str, url: str) -> None:
self.message = message
self.url = url
super().__init__(self.message)
super().__init__(self.message)