optz
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from dataclasses import asdict, is_dataclass
|
||||
from typing import Any
|
||||
@@ -33,13 +31,13 @@ class HTTPClient:
|
||||
def close(self) -> None:
|
||||
self.http.close()
|
||||
|
||||
def __enter__(self) -> "HTTPClient":
|
||||
def __enter__(self) -> HTTPClient:
|
||||
return self
|
||||
|
||||
def __exit__(self, *_args: object) -> None:
|
||||
self.close()
|
||||
|
||||
def set_account_type(self, account_type: str) -> "HTTPClient":
|
||||
def set_account_type(self, account_type: str) -> HTTPClient:
|
||||
if account_type.strip():
|
||||
self.account_type = account_type
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user