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
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user