Skip to content

Commit

Permalink
typecheck hack
Browse files Browse the repository at this point in the history
  • Loading branch information
olethanh committed Apr 8, 2024
1 parent 2b69624 commit 5a94031
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/example_fastapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from datetime import datetime
from os import listdir
from pathlib import Path
from typing import Dict, Optional
from typing import Dict, Optional, TYPE_CHECKING

import aiohttp
from fastapi import FastAPI
Expand All @@ -18,7 +18,8 @@
from starlette.responses import JSONResponse

# FIXME: This import fails to work in a VM when using pytest
# from aleph.sdk.chains.remote import RemoteAccount
if TYPE_CHECKING:
from aleph.sdk.chains.remote import RemoteAccount
from aleph.sdk.client import AlephClient, AuthenticatedAlephClient
from aleph.sdk.types import StorageEnum
from aleph.sdk.vm.app import AlephApp
Expand Down

0 comments on commit 5a94031

Please sign in to comment.