Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports #360

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/xian/methods/query.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
import base64
import json
import ast
import re
import asyncio
import socket
import struct

from cometbft.abci.v1beta1.types_pb2 import ResponseQuery
from xian.utils.encoding import encode_str
from xian.constants import Constants as c

from contracting.stdlib.bridge.decimal import ContractingDecimal
from contracting.compilation import parser
from contracting.compilation.linter import Linter
from contracting.storage.encoder import Encoder
from loguru import logger
from pyflakes.api import check
from pyflakes.reporter import Reporter
from urllib.parse import unquote
from io import StringIO


async def query(self, req) -> ResponseQuery:
Expand All @@ -30,7 +20,6 @@ async def query(self, req) -> ResponseQuery:

logger.debug(req.path)
path_parts = [part for part in req.path.split("/") if part]
loop = asyncio.get_event_loop()
key = path_parts[1] if len(path_parts) > 1 else ""
result = None
try:
Expand Down
Loading