Преобразование str в UUID

This commit is contained in:
Rationess
2026-02-05 09:26:16 +03:00
parent 55630bc23f
commit 65cd617a1f
2 changed files with 103 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
from itd.request import fetch
from uuid import UUID
def report(token: str, id: str, type: str = 'post', reason: str = 'other', description: str = ''):
def report(token: str, id: UUID, type: str = 'post', reason: str = 'other', description: str = ''):
return fetch(token, 'post', 'reports', {'targetId': id, 'targetType': type, 'reason': reason, 'description': description})