I am making a game in Python, and it makes sense to have one of my modules named "map". My preferred import method is to do this:
from mygame import map
As pylint tells me, this overrides the inline. What is the general way to deal with this? Here are the options I can come up with:
1) Ignore the pylint warning, since I still donβt use the built-in card.
2) Change to:
import mygame
then mygame.map is indicated in my code.
3) Rename my map module to another (hexmap, gamemap, etc.)
I tend to (2), but I want to see what other people think.
Colin source share