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

Skip to content

Commit 55a9905

Browse files
committed
Remove typing.Self from 3.10
1 parent 3434f0a commit 55a9905

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'
@@ -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'],

0 commit comments

Comments
 (0)