Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7437308

Browse files
committed
Remove typing.Self from 3.10
1 parent d98acac commit 7437308

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

manage_translation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from re import match, search
2020
from subprocess import call, run
2121
import sys
22-
from typing import Self
2322
from urllib.parse import unquote
2423

2524
LANGUAGE = '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'],

0 commit comments

Comments
 (0)