Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
chore: add from future import annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
lumina37 committed Aug 15, 2024
1 parent 304ae68 commit d90f568
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aiotieba_reviewer/executor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import asyncio
from collections.abc import Awaitable, Callable

Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/comment/checker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections.abc import Awaitable, Callable

from ... import client
Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/comment/runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections.abc import Awaitable, Callable

from ... import executor
Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/comments/runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import asyncio
from collections.abc import Awaitable, Callable

Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/post/checker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections.abc import Awaitable, Callable

from ... import client
Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/post/runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections.abc import Awaitable, Callable

from ... import executor
Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/posts/runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import asyncio
import itertools
from collections.abc import Awaitable, Callable
Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/thread/checker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections.abc import Awaitable, Callable

from ... import client
Expand Down
2 changes: 2 additions & 0 deletions aiotieba_reviewer/reviewer/user_checker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from ..client import get_db
from ..enums import Ops
from ..punish import Punish
Expand Down
4 changes: 3 additions & 1 deletion examples/reviewer_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import argparse
import asyncio
import re
Expand Down Expand Up @@ -53,7 +55,7 @@ async def check_thread(thread: Thread) -> Punish | None:
if user.level >= 4 or user.glevel >= 4 or user.priv_like == 3:
return

hpuser, hpthreads = await get_homepage(client, user.user_id)
hpuser, _hpthreads = await get_homepage(client, user.user_id)

# 用户个性签名是否包含违规内容
if sign_check_exp.search(hpuser.sign):
Expand Down

0 comments on commit d90f568

Please sign in to comment.