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 3434f0a commit 55a9905Copy full SHA for 55a9905
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'
@@ -91,7 +90,7 @@ class Resource:
91
90
slug: str
92
93
@classmethod
94
- def from_api_v3_entry(cls, data: dict) -> Self:
+ def from_api_v3_entry(cls, data: dict):
95
return cls(slug=data['attributes']['slug'])
96
97
@@ -104,7 +103,7 @@ class ResourceLanguageStatistics:
104
103
translated_strings: int
105
106
107
108
return cls(
109
name=search('r:([^:]*)', data['id']).group(1),
110
total_words=data['attributes']['total_words'],
0 commit comments