Skip to content

Commit

Permalink
squashme: conditional typing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
half-duplex committed May 25, 2022
1 parent feb26b3 commit 0edd88c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions sopel/modules/safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@
import re
import threading
from time import sleep
from typing import Dict, Optional
from typing import TYPE_CHECKING
from urllib.parse import urlparse, urlunparse

import requests

from sopel import plugin, tools
from sopel.bot import Sopel, SopelWrapper
from sopel.config import Config, types
from sopel.config import types
from sopel.formatting import bold, color, colors
from sopel.trigger import Trigger

if TYPE_CHECKING:
from typing import Dict, Optional

from sopel.bot import Sopel, SopelWrapper
from sopel.config import Config
from sopel.trigger import Trigger

LOGGER = logging.getLogger(__name__)
PLUGIN_OUTPUT_PREFIX = '[safety] '
Expand Down

0 comments on commit 0edd88c

Please sign in to comment.