Fixes linting warnings
This commit is contained in:
parent
20b60d6f98
commit
1d9b7449d3
|
@ -621,4 +621,3 @@ class WSLConfigurationAdvanced:
|
|||
@attr.s(auto_attribs=True)
|
||||
class WSLSetupOptions:
|
||||
install_language_support_packages: bool = attr.ib(default=True)
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class WSLSetupOptionsController(SubiquityTuiController):
|
|||
|
||||
def run_answers(self):
|
||||
if all(elem in self.answers for elem in
|
||||
['install_language_support_packages']):
|
||||
['install_language_support_packages']):
|
||||
configuration = WSLSetupOptions(**self.answers)
|
||||
self.done(configuration)
|
||||
|
||||
|
|
|
@ -41,4 +41,3 @@ class WSLSetupOptionsModel(object):
|
|||
|
||||
def __repr__(self):
|
||||
return "<WSL Setup Options: {}>".format(self.wslsetupoptions)
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ class ConfigureController(SubiquityController):
|
|||
|
||||
cmd = []
|
||||
if self.model.wslsetupoptions.wslsetupoptions.\
|
||||
install_language_support_packages is True:
|
||||
install_language_support_packages is True:
|
||||
cmd = [aptCommand, "install", "-y"]
|
||||
|
||||
else:
|
||||
|
|
|
@ -76,4 +76,3 @@ class WSLSetupOptionsController(SubiquityController):
|
|||
async def POST(self, data: WSLSetupOptions):
|
||||
self.model.apply_settings(data)
|
||||
await self.configured()
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ class WSLSetupOptionsForm(Form):
|
|||
help=_("Not recommended for slow internet connections."))
|
||||
|
||||
|
||||
|
||||
class WSLSetupOptionsView(BaseView):
|
||||
title = _("Enhance your experience")
|
||||
excerpt = _("Adjust the following options for a more complete experience.")
|
||||
|
@ -63,4 +62,3 @@ class WSLSetupOptionsView(BaseView):
|
|||
|
||||
def done(self, result):
|
||||
self.controller.done(WSLSetupOptions(**self.form.as_data()))
|
||||
|
||||
|
|
Loading…
Reference in New Issue