[chore] format code
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
SouthFox 2023-08-04 22:16:29 +08:00
parent a1f801c1d2
commit 36ae86fe6a

View file

@ -112,9 +112,7 @@ class VisibilityEnum(str, enum.Enum):
DIRECT = "direct"
def handle_visibility(
ap_object: dict
) -> VisibilityEnum:
def handle_visibility(ap_object: dict) -> VisibilityEnum:
to = ap_object.get("to", [])
cc = ap_object.get("cc", [])
if AS_PUBLIC in to:
@ -147,8 +145,8 @@ def wrap_ap_object(ap_object: dict) -> dict:
async def post(
url: str,
payload : dict,
) -> httpx.Response :
payload: dict,
) -> httpx.Response:
logger.info(f"send post, {payload=}")
async with httpx.AsyncClient() as client: