[V3] Use typing.TYPE_CHECKING instead of utils.TYPE_CHECKING (#1778)

Not needed any more as we no longer support python<3.6
This commit is contained in:
Tobotimus
2018-06-03 08:24:16 +10:00
committed by Will
parent 8610b47a68
commit 19b05e632c
5 changed files with 5 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
__all__ = ["TYPE_CHECKING", "NewType", "safe_delete", "fuzzy_command_search"]
__all__ = ["safe_delete", "fuzzy_command_search"]
from pathlib import Path
import os
@@ -7,18 +7,6 @@ from redbot.core import commands
from fuzzywuzzy import process
from .chat_formatting import box
try:
from typing import TYPE_CHECKING
except ImportError:
TYPE_CHECKING = False
try:
from typing import NewType
except ImportError:
def NewType(name, tp):
return type(name, (tp,), {})
def safe_delete(pth: Path):
if pth.exists():