add type hinting

PEP8 formatting
This commit is contained in:
naughtyGitCat
2022-09-16 18:23:20 +08:00
parent daedd3071c
commit f56400a56b
4 changed files with 58 additions and 43 deletions

View File

@@ -563,8 +563,10 @@ class IniProxy():
self.proxytype = proxytype
def proxies(self):
''' 获得代理参数默认http代理
'''
"""
获得代理参数默认http代理
get proxy params, use http proxy for default
"""
if self.address:
if self.proxytype in self.SUPPORT_PROXY_TYPE:
proxies = {"http": self.proxytype + "://" + self.address,