Remove TYPE_CHECKING

This commit is contained in:
Zeva Rose 2022-02-19 14:24:41 -07:00
parent 759fe011d5
commit 3782cda364
3 changed files with 5 additions and 14 deletions

View file

@ -1,16 +1,13 @@
"""JARVIS ban tasks."""
import asyncio
from datetime import datetime, timedelta
from typing import TYPE_CHECKING
from dis_snek import Snake
from jarvis_core.db import q
from jarvis_core.db.models import Ban, Unban
if TYPE_CHECKING:
from dis_snek import Snake
async def unban(bot: "Snake") -> None:
async def unban(bot: Snake) -> None:
"""
Unban users when ban expires.

View file

@ -1,17 +1,14 @@
"""JARVIS reminders."""
import asyncio
from datetime import datetime, timedelta
from typing import TYPE_CHECKING
from dis_snek import Snake
from jarvis_core.db import q
from jarvis_core.db.models import Reminder
from jarvis_core.util import build_embed
if TYPE_CHECKING:
from dis_snek import Snake
async def remind(bot: "Snake") -> None:
async def remind(bot: Snake) -> None:
"""
Run reminders in the background.

View file

@ -1,17 +1,14 @@
"""JARVIS Twitter sync."""
import asyncio
from datetime import datetime, timedelta
from typing import TYPE_CHECKING
import tweepy
from dis_snek import Snake
from jarvis_core.db import q
from jarvis_core.db.models import TwitterAccount, TwitterFollow
from jarvis_tasks.config import TaskConfig
if TYPE_CHECKING:
from dis_snek import Snake
config = TaskConfig.from_yaml()