Tox fix, and catch an extra shadowing
This commit is contained in:
@@ -377,8 +377,8 @@ class Skill(HandledItem):
|
||||
if hasattr(self, "_Skill__ro") and self.__ro is True and key != "characterID":
|
||||
raise ReadOnlyException()
|
||||
|
||||
map = {"characterID": lambda val: isinstance(val, int),
|
||||
"skillID": lambda val: isinstance(val, int)}
|
||||
map = {"characterID": lambda _val: isinstance(_val, int),
|
||||
"skillID": lambda _val: isinstance(_val, int)}
|
||||
|
||||
if not map[key](val):
|
||||
raise ValueError(str(val) + " is not a valid value for " + key)
|
||||
|
||||
@@ -59,7 +59,7 @@ class GraphFrame(wx.Frame):
|
||||
from matplotlib.figure import Figure
|
||||
enabled = True
|
||||
except ImportError:
|
||||
matplotlib = mpl = FigureCanvasWxAgg = Canvas = Figure = None
|
||||
mpl = Canvas = Figure = None
|
||||
enabled = False
|
||||
|
||||
self.legendFix = False
|
||||
|
||||
Reference in New Issue
Block a user