kopia lustrzana https://github.com/bugout-dev/moonstream
Add mypy fixes.
rodzic
d7c8a13ba1
commit
1f9bb83cfa
|
@ -17,8 +17,8 @@ from bugout.data import (
|
|||
)
|
||||
from bugout.journal import SearchOrder
|
||||
from bugout.exceptions import BugoutResponseException
|
||||
from entity.data import EntityCollectionsResponse, EntityCollectionResponse
|
||||
from entity.exceptions import EntityUnexpectedResponse
|
||||
from entity.data import EntityCollectionsResponse, EntityCollectionResponse # type: ignore
|
||||
from entity.exceptions import EntityUnexpectedResponse # type: ignore
|
||||
from ens.utils import is_valid_ens_name # type: ignore
|
||||
from eth_utils.address import is_address # type: ignore
|
||||
from moonstreamdb.models import EthereumLabel
|
||||
|
|
|
@ -5,16 +5,15 @@ import hashlib
|
|||
import logging
|
||||
import json
|
||||
import os
|
||||
from pprint import pprint
|
||||
import traceback
|
||||
from typing import List, Optional, Dict, Any, Union, Tuple
|
||||
import uuid
|
||||
|
||||
import boto3
|
||||
import boto3 # type: ignore
|
||||
from bugout.data import BugoutResources, BugoutResource
|
||||
from bugout.exceptions import BugoutResponseException
|
||||
from entity.exceptions import EntityUnexpectedResponse
|
||||
from entity.data import EntityCollectionResponse, EntityResponse
|
||||
from entity.exceptions import EntityUnexpectedResponse # type: ignore
|
||||
from entity.data import EntityCollectionResponse, EntityResponse # type: ignore
|
||||
|
||||
from ...settings import (
|
||||
BUGOUT_REQUEST_TIMEOUT_SECONDS,
|
||||
|
|
|
@ -8,7 +8,7 @@ import boto3 # type: ignore
|
|||
import requests # type: ignore
|
||||
from bugout.data import BugoutResource, BugoutResources
|
||||
from bugout.exceptions import BugoutResponseException
|
||||
from entity.data import EntitiesResponse, EntityResponse
|
||||
from entity.data import EntitiesResponse, EntityResponse # type: ignore
|
||||
from fastapi import APIRouter, Body, Path, Query, Request
|
||||
|
||||
from .. import actions, data
|
||||
|
|
|
@ -7,7 +7,7 @@ import logging
|
|||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from bugout.data import BugoutResource, BugoutResources
|
||||
from bugout.exceptions import BugoutResponseException
|
||||
from bugout.exceptions import BugoutResponseException # type: ignore
|
||||
from entity.exceptions import EntityUnexpectedResponse
|
||||
from fastapi import APIRouter, Depends, Request, Form, BackgroundTasks
|
||||
from web3 import Web3
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import os
|
||||
|
||||
from bugout.app import Bugout
|
||||
from entity.client import Entity
|
||||
from entity.client import Entity # type: ignore
|
||||
|
||||
|
||||
# Bugout
|
||||
|
|
|
@ -24,7 +24,7 @@ setup(
|
|||
"python-multipart",
|
||||
"python-slugify",
|
||||
"uvicorn",
|
||||
"web3",
|
||||
"web3>=5.30.0, <6",
|
||||
],
|
||||
extras_require={
|
||||
"dev": ["black", "isort", "mypy", "types-requests", "types-python-dateutil"],
|
||||
|
|
Ładowanie…
Reference in New Issue