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'
@@ -91,7 +90,7 @@ class Resource:
91
90
slug : str
92
91
93
92
@classmethod
94
- def from_api_v3_entry (cls , data : dict ) -> Self :
93
+ def from_api_v3_entry (cls , data : dict ):
95
94
return cls (slug = data ['attributes' ]['slug' ])
96
95
97
96
@@ -104,7 +103,7 @@ class ResourceLanguageStatistics:
104
103
translated_strings : int
105
104
106
105
@classmethod
107
- def from_api_v3_entry (cls , data : dict ) -> Self :
106
+ def from_api_v3_entry (cls , data : dict ):
108
107
return cls (
109
108
name = search ('r:([^:]*)' , data ['id' ]).group (1 ),
110
109
total_words = data ['attributes' ]['total_words' ],
You can’t perform that action at this time.
0 commit comments