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

Commit1af0e33

Browse files
committed
lint errors
1 parent9f052a8 commit1af0e33

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎python_anvil/api_resources/requests.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
fromtypingimportAny,Dict
22

3-
frompython_anvil.httpimportHTTPClient
43
frompython_anvil.constantsimportVALID_HOSTS
4+
frompython_anvil.httpimportHTTPClient
5+
56

67

78
classAnvilRequest:
@@ -172,9 +173,7 @@ def get_url(self):
172173

173174
def_validate_url(self,url):
174175
ifnotany(url.startswith(host)forhostinVALID_HOSTS):
175-
raiseValueError(
176-
f"URL must start with one of:{', '.join(VALID_HOSTS)}"
177-
)
176+
raiseValueError(f"URL must start with one of:{', '.join(VALID_HOSTS)}")
178177

179178
defget(self,url,params=None,**kwargs):
180179
self._validate_url(url)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp