Fix typing
This commit is contained in:
parent
394dae90f5
commit
0b6556e54a
2 changed files with 9 additions and 6 deletions
|
@ -160,9 +160,9 @@ async def save_actor(db_session: AsyncSession, ap_actor: ap.RawObject) -> "Actor
|
|||
async def fetch_actor(
|
||||
db_session: AsyncSession,
|
||||
actor_id: str,
|
||||
) -> Union["ActorModel", RemoteActor]:
|
||||
) -> "ActorModel":
|
||||
if actor_id == LOCAL_ACTOR.ap_id:
|
||||
return LOCAL_ACTOR
|
||||
raise ValueError("local actor should not be fetched")
|
||||
from app import models
|
||||
|
||||
existing_actor = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue