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'
@@ -99,7 +98,7 @@ class Resource:
9998 slug : str
10099
101100 @classmethod
102- def from_api_v3_entry (cls , data : dict ) -> Self :
101+ def from_api_v3_entry (cls , data : dict ):
103102 return cls (slug = data ['attributes' ]['slug' ])
104103
105104
@@ -112,7 +111,7 @@ class ResourceLanguageStatistics:
112111 translated_strings : int
113112
114113 @classmethod
115- def from_api_v3_entry (cls , data : dict ) -> Self :
114+ def from_api_v3_entry (cls , data : dict ):
116115 return cls (
117116 name = search ('r:([^:]*)' , data ['id' ]).group (1 ),
118117 total_words = data ['attributes' ]['total_words' ],
You can’t perform that action at this time.
0 commit comments