Tell mypy to not care about user-defined modules

This commit is contained in:
Vgr E. Barry 2016-08-12 13:11:07 -04:00
parent f96d73a8af
commit cdaae22b2f

View File

@ -15,12 +15,12 @@ from src import db
# Do the same with roles
try:
import gamemodes
import gamemodes # type: ignore
except ImportError:
import src.gamemodes
try:
import roles
import roles # type: ignore
roles.CUSTOM_ROLES_DEFINED
except (ImportError, AttributeError):
import src.roles