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 # Do the same with roles
try: try:
import gamemodes import gamemodes # type: ignore
except ImportError: except ImportError:
import src.gamemodes import src.gamemodes
try: try:
import roles import roles # type: ignore
roles.CUSTOM_ROLES_DEFINED roles.CUSTOM_ROLES_DEFINED
except (ImportError, AttributeError): except (ImportError, AttributeError):
import src.roles import src.roles