Skip to content

Commit

Permalink
(fix) Solve pre-commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abel committed Apr 18, 2024
1 parent d916599 commit 7b4e0b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
12 changes: 6 additions & 6 deletions pyinjective/core/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,12 @@ def custom(

@classmethod
def custom_chain_and_public_indexer_mainnet(
cls,
lcd_endpoint,
tm_websocket_endpoint,
grpc_endpoint,
chain_stream_endpoint,
cookie_assistant: Optional[CookieAssistant] = None,
cls,
lcd_endpoint,
tm_websocket_endpoint,
grpc_endpoint,
chain_stream_endpoint,
cookie_assistant: Optional[CookieAssistant] = None,
):
mainnet_network = cls.mainnet()

Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_network_deprecation_warnings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from warnings import catch_warnings

from pyinjective.core.network import Network, DisabledCookieAssistant
from pyinjective.core.network import DisabledCookieAssistant, Network


class TestNetworkDeprecationWarnings:
Expand Down
5 changes: 1 addition & 4 deletions tests/test_async_client_deprecation_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1689,10 +1689,7 @@ def test_credentials_parameter_deprecation_warning(
auth_servicer,
):
with catch_warnings(record=True) as all_warnings:
AsyncClient(
network=Network.local(),
credentials=grpc.ssl_channel_credentials()
)
AsyncClient(network=Network.local(), credentials=grpc.ssl_channel_credentials())

deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)]
assert len(deprecation_warnings) == 1
Expand Down

0 comments on commit 7b4e0b2

Please sign in to comment.