Skip to content

Commit 7b4e0b2

Browse files
author
abel
committed
(fix) Solve pre-commit issues
1 parent d916599 commit 7b4e0b2

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

pyinjective/core/network.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ def custom(
375375

376376
@classmethod
377377
def custom_chain_and_public_indexer_mainnet(
378-
cls,
379-
lcd_endpoint,
380-
tm_websocket_endpoint,
381-
grpc_endpoint,
382-
chain_stream_endpoint,
383-
cookie_assistant: Optional[CookieAssistant] = None,
378+
cls,
379+
lcd_endpoint,
380+
tm_websocket_endpoint,
381+
grpc_endpoint,
382+
chain_stream_endpoint,
383+
cookie_assistant: Optional[CookieAssistant] = None,
384384
):
385385
mainnet_network = cls.mainnet()
386386

tests/core/test_network_deprecation_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from warnings import catch_warnings
22

3-
from pyinjective.core.network import Network, DisabledCookieAssistant
3+
from pyinjective.core.network import DisabledCookieAssistant, Network
44

55

66
class TestNetworkDeprecationWarnings:

tests/test_async_client_deprecation_warnings.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,10 +1689,7 @@ def test_credentials_parameter_deprecation_warning(
16891689
auth_servicer,
16901690
):
16911691
with catch_warnings(record=True) as all_warnings:
1692-
AsyncClient(
1693-
network=Network.local(),
1694-
credentials=grpc.ssl_channel_credentials()
1695-
)
1692+
AsyncClient(network=Network.local(), credentials=grpc.ssl_channel_credentials())
16961693

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

0 commit comments

Comments
 (0)