Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98acac commit 7437308Copy full SHA for 7437308
manage_translation.py
@@ -19,7 +19,6 @@
19
from re import match, search
20
from subprocess import call, run
21
import sys
22
-from typing import Self
23
from urllib.parse import unquote
24
25
LANGUAGE = 'pl'
@@ -99,7 +98,7 @@ class Resource:
99
98
slug: str
100
101
@classmethod
102
- def from_api_v3_entry(cls, data: dict) -> Self:
+ def from_api_v3_entry(cls, data: dict):
103
return cls(slug=data['attributes']['slug'])
104
105
@@ -112,7 +111,7 @@ class ResourceLanguageStatistics:
112
111
translated_strings: int
113
114
115
116
return cls(
117
name=search('r:([^:]*)', data['id']).group(1),
118
total_words=data['attributes']['total_words'],
0 commit comments