ソースを参照

Make optional arguments to fetch kwarg-only

master
JustAnotherArchivist 3年前
コミット
ce7f8fdc92
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      qwarc/__init__.py

+ 1
- 1
qwarc/__init__.py ファイルの表示

@@ -73,7 +73,7 @@ class Item:
out.append((key, value))
return out

async def fetch(self, url, responseHandler = None, method = 'GET', data = None, headers = [], verify_ssl = True, timeout = 60, fromResponse = None):
async def fetch(self, url, *, responseHandler = None, method = 'GET', data = None, headers = [], verify_ssl = True, timeout = 60, fromResponse = None):
'''
HTTP GET or POST a URL



読み込み中…
キャンセル
保存