def _set_stylesheet(self, css):
if not isinstance(css, CSS):
css = CSS(**css) # <<-- Lacks a target argument
self._style = css
css.apply_recursive(self)
Not sure what an appropriate substitute key would be here, though maybe self.key is workable?
Or we could raise TypeError if not passed a CSS instance.
Not sure what an appropriate substitute key would be here, though maybe
self.keyis workable?Or we could raise
TypeErrorif not passed aCSSinstance.