Skip to content

Commit

Permalink
fix all typings
Browse files Browse the repository at this point in the history
  • Loading branch information
sndmndss committed Aug 28, 2024
1 parent 0e64ab3 commit edca0b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bpx/async_/public.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from bpx.base.base_public import BasePublic
from bpx.http_client.async_http_client import AsyncHttpClient
from typing import Optional

default_http_client = AsyncHttpClient()


class Public(BasePublic):

def __init__(
self, proxy: str | None = None, http_client: AsyncHttpClient = default_http_client
self, proxy: Optional[str] = None, http_client: AsyncHttpClient = default_http_client
):
self.http_client = http_client
self.http_client.proxy = proxy
Expand Down
2 changes: 1 addition & 1 deletion bpx/base/base_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def execute_order(
self_trade_prevention: str = "RejectBoth",
quote_quantity: Optional[float] = None,
client_id: Optional[int] = None,
post_only: bool | None = None,
post_only: Optional[bool] = None,
window: Optional[int] = None,
):
"""
Expand Down
3 changes: 2 additions & 1 deletion bpx/public.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from bpx.base.base_public import BasePublic
from bpx.http_client.sync_http_client import SyncHttpClient
from typing import Optional

default_http_client = SyncHttpClient()

Expand All @@ -8,7 +9,7 @@ class Public(BasePublic):

def __init__(
self,
proxy: dict | None = None,
proxy: Optional[dict] = None,
http_client: SyncHttpClient = default_http_client,
):
self.http_client = http_client
Expand Down

0 comments on commit edca0b7

Please sign in to comment.