Skip to content

Commit

Permalink
Merge pull request #109 from discord-modmail/fix-cogs-import
Browse files Browse the repository at this point in the history
fix: only import bot when type checking modmail.utils.cogs
  • Loading branch information
onerandomusername authored Nov 1, 2021
2 parents 85c1f42 + 5cc28a0 commit 9b5dac9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modmail/utils/cogs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from dataclasses import dataclass
from enum import IntEnum, auto
from typing import TYPE_CHECKING

from discord.ext import commands

import modmail.bot

if TYPE_CHECKING: # pragma: nocover
import modmail.bot


class BitwiseAutoEnum(IntEnum):
Expand Down

0 comments on commit 9b5dac9

Please sign in to comment.