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 1919from re import match , search
2020from subprocess import call , run
2121import sys
22- from typing import Self
2322from urllib .parse import unquote
2423
2524LANGUAGE = 'pl'
@@ -91,7 +90,7 @@ class Resource:
9190 slug : str
9291
9392 @classmethod
94- def from_api_v3_entry (cls , data : dict ) -> Self :
93+ def from_api_v3_entry (cls , data : dict ):
9594 return cls (slug = data ['attributes' ]['slug' ])
9695
9796
@@ -104,7 +103,7 @@ class ResourceLanguageStatistics:
104103 translated_strings : int
105104
106105 @classmethod
107- def from_api_v3_entry (cls , data : dict ) -> Self :
106+ def from_api_v3_entry (cls , data : dict ):
108107 return cls (
109108 name = search ('r:([^:]*)' , data ['id' ]).group (1 ),
110109 total_words = data ['attributes' ]['total_words' ],
You can’t perform that action at this time.
0 commit comments