Skip to content

Commit

Permalink
Change str to Optional[str]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonney committed Dec 12, 2024
1 parent 5812c87 commit 98712f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/solana/rpc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
commitment: Optional[Commitment] = None,
timeout: float = 10,
extra_headers: Optional[Dict[str, str]] = None,
proxy: str = None,
proxy: Optional[str] = None,
):
"""Init API client."""
super().__init__(commitment)
Expand Down
2 changes: 1 addition & 1 deletion src/solana/rpc/async_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
commitment: Optional[Commitment] = None,
timeout: float = 10,
extra_headers: Optional[Dict[str, str]] = None,
proxy: str = None,
proxy: Optional[str] = None,
) -> None:
"""Init API client."""
super().__init__(commitment)
Expand Down
2 changes: 1 addition & 1 deletion src/solana/rpc/providers/async_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(
endpoint: Optional[str] = None,
extra_headers: Optional[Dict[str, str]] = None,
timeout: float = DEFAULT_TIMEOUT,
proxy: str = None,
proxy: Optional[str] = None,
):
"""Init AsyncHTTPProvider."""
super().__init__(endpoint, extra_headers)
Expand Down
2 changes: 1 addition & 1 deletion src/solana/rpc/providers/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(
endpoint: Optional[str] = None,
extra_headers: Optional[Dict[str, str]] = None,
timeout: float = DEFAULT_TIMEOUT,
proxy: str = None,
proxy: Optional[str] = None,
):
"""Init HTTPProvider."""
super().__init__(endpoint, extra_headers)
Expand Down

0 comments on commit 98712f3

Please sign in to comment.