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

Commit7437308

Browse files
committed
Remove typing.Self from 3.10
1 parentd98acac commit7437308

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'
@@ -99,7 +98,7 @@ class Resource:
9998
slug:str
10099

101100
@classmethod
102-
deffrom_api_v3_entry(cls,data:dict)->Self:
101+
deffrom_api_v3_entry(cls,data:dict):
103102
returncls(slug=data['attributes']['slug'])
104103

105104

@@ -112,7 +111,7 @@ class ResourceLanguageStatistics:
112111
translated_strings:int
113112

114113
@classmethod
115-
deffrom_api_v3_entry(cls,data:dict)->Self:
114+
deffrom_api_v3_entry(cls,data:dict):
116115
returncls(
117116
name=search('r:([^:]*)',data['id']).group(1),
118117
total_words=data['attributes']['total_words'],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp