Fixes Builder error

This commit is contained in:
kokarare1212 2021-08-23 15:03:18 +09:00
parent bee0ad3ec1
commit 971bf1dee8
No known key found for this signature in database
GPG Key ID: 9FB32C7C7D874F7A
1 changed files with 4 additions and 4 deletions

View File

@ -1035,8 +1035,8 @@ class Session(Closeable, SubListener, DealerClient.MessageListener):
class Builder:
# Proxy
proxyEnabled: bool = False
proxyType: Proxy.Type
proxyAddress: str
proxyType: Proxy.Type = Proxy.Type.DIRECT
proxyAddress: str = None
proxyPort: int
proxyAuth: bool
proxyUsername: str
@ -1045,7 +1045,7 @@ class Session(Closeable, SubListener, DealerClient.MessageListener):
# Cache
cache_enabled: bool = True
cache_dir: str = os.path.join(os.getcwd(), "cache")
do_cache_clean_up: bool
do_cache_clean_up: bool = True
# Stored credentials
store_credentials: bool = True
@ -1053,7 +1053,7 @@ class Session(Closeable, SubListener, DealerClient.MessageListener):
os.getcwd(), "credentials.json")
# Fetching
retry_on_chunk_error: bool
retry_on_chunk_error: bool = True
def set_proxy_enabled(
self,