Fixes linting warnings

This commit is contained in:
Carlos Nihelton 2022-08-22 09:20:57 -03:00
parent 20b60d6f98
commit 1d9b7449d3
No known key found for this signature in database
GPG Key ID: 6FE346D245197E9A
6 changed files with 2 additions and 7 deletions

View File

@ -621,4 +621,3 @@ class WSLConfigurationAdvanced:
@attr.s(auto_attribs=True)
class WSLSetupOptions:
install_language_support_packages: bool = attr.ib(default=True)

View File

@ -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)

View File

@ -41,4 +41,3 @@ class WSLSetupOptionsModel(object):
def __repr__(self):
return "<WSL Setup Options: {}>".format(self.wslsetupoptions)

View File

@ -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:

View File

@ -76,4 +76,3 @@ class WSLSetupOptionsController(SubiquityController):
async def POST(self, data: WSLSetupOptions):
self.model.apply_settings(data)
await self.configured()

View File

@ -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()))