nonlocal-without-binding / E0117#
nonlocal name %s found without binding
Emitted when a nonlocal variable does not have an attached name somewhere in the parent scopes
class Fruit: def get_color(self): nonlocal colors # [nonlocal-without-binding]
class Fruit: colors = ["red", "green"] def get_color(self): nonlocal colors
Created by the basic checker.