Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55a9905

Browse files
committed
Remove typing.Self from 3.10
1 parent3434f0a commit55a9905

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
fromreimportmatch,search
2020
fromsubprocessimportcall,run
2121
importsys
22-
fromtypingimportSelf
2322
fromurllib.parseimportunquote
2423

2524
LANGUAGE='pl'
@@ -91,7 +90,7 @@ class Resource:
9190
slug:str
9291

9392
@classmethod
94-
deffrom_api_v3_entry(cls,data:dict)->Self:
93+
deffrom_api_v3_entry(cls,data:dict):
9594
returncls(slug=data['attributes']['slug'])
9695

9796

@@ -104,7 +103,7 @@ class ResourceLanguageStatistics:
104103
translated_strings:int
105104

106105
@classmethod
107-
deffrom_api_v3_entry(cls,data:dict)->Self:
106+
deffrom_api_v3_entry(cls,data:dict):
108107
returncls(
109108
name=search('r:([^:]*)',data['id']).group(1),
110109
total_words=data['attributes']['total_words'],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp