Tell mypy to not care about user-defined modules
This commit is contained in:
parent
f96d73a8af
commit
cdaae22b2f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user