File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 19
19
from re import match , search
20
20
from subprocess import call , run
21
21
import sys
22
- from typing import Self
23
22
from urllib .parse import unquote
24
23
25
24
LANGUAGE = 'pl'
@@ -99,7 +98,7 @@ class Resource:
99
98
slug : str
100
99
101
100
@classmethod
102
- def from_api_v3_entry (cls , data : dict ) -> Self :
101
+ def from_api_v3_entry (cls , data : dict ):
103
102
return cls (slug = data ['attributes' ]['slug' ])
104
103
105
104
@@ -112,7 +111,7 @@ class ResourceLanguageStatistics:
112
111
translated_strings : int
113
112
114
113
@classmethod
115
- def from_api_v3_entry (cls , data : dict ) -> Self :
114
+ def from_api_v3_entry (cls , data : dict ):
116
115
return cls (
117
116
name = search ('r:([^:]*)' , data ['id' ]).group (1 ),
118
117
total_words = data ['attributes' ]['total_words' ],
You can’t perform that action at this time.
0 commit comments