Skip to content

Commit 193d9b6

Browse files
committed
style: apply ruff-format to simple.py after type annotation fix
1 parent 7cd4514 commit 193d9b6

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/thegraph_token_api/simple.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -511,20 +511,16 @@ async def _evm_nft_activities(
511511
)
512512
return self._extract_data(response)
513513

514-
<<<<<<< HEAD
515514
async def _evm_nft_item(
516515
self, contract: str, token_id: str, network: NetworkId | str | None = None
517-
) -> dict | None:
518-
=======
519-
async def _evm_nft_item(self, contract: str, token_id: str, network: NetworkId | str | None = None) -> dict | None:
520-
>>>>>>> 1f02e38 (feat: Update dependency to divine-typed-requests)
516+
) -> list[dict[Any, Any]]:
521517
"""Internal EVM NFT item implementation."""
522518
net = str(network) if network else self._default_network
523519
async with self._api.evm(net) as client:
524520
response = await client.get_nft_item(contract=contract, token_id=token_id)
525521
return self._extract_data(response)
526522

527-
async def _evm_nft_holders(self, contract: str, network: NetworkId | str | None = None) -> dict | None:
523+
async def _evm_nft_holders(self, contract: str, network: NetworkId | str | None = None) -> list[dict[Any, Any]]:
528524
"""Internal EVM NFT holders implementation."""
529525
net = str(network) if network else self._default_network
530526
async with self._api.evm(net) as client:
@@ -537,7 +533,7 @@ async def _evm_nft_sales(
537533
token_id: str | None = None,
538534
limit: int = 10,
539535
network: NetworkId | str | None = None,
540-
) -> dict | None:
536+
) -> list[dict[Any, Any]]:
541537
"""Internal EVM NFT sales implementation."""
542538
net = str(network) if network else self._default_network
543539
async with self._api.evm(net) as client:
@@ -551,7 +547,7 @@ async def _evm_historical_balances(
551547
interval: Interval | str = Interval.ONE_HOUR,
552548
limit: int = 10,
553549
network: NetworkId | str | None = None,
554-
) -> dict | None:
550+
) -> list[dict[Any, Any]]:
555551
"""Internal EVM historical balances implementation."""
556552
net = str(network) if network else self._default_network
557553
async with self._api.evm(net) as client:
@@ -690,12 +686,12 @@ async def _svm_swaps(
690686

691687
# ===== Utility Methods =====
692688

693-
async def version(self) -> dict[str, Any]:
689+
async def version(self) -> list[dict[Any, Any]]:
694690
"""Get API version information."""
695691
response = await self._api.get_version()
696692
return self._extract_data(response)
697693

698-
async def networks(self) -> dict[str, Any]:
694+
async def networks(self) -> list[dict[Any, Any]]:
699695
"""Get supported networks."""
700696
response = await self._api.get_networks()
701697
return self._extract_data(response)

0 commit comments

Comments
 (0)