mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Fixed for mypy errors
This commit is contained in:
parent
d3a3ee1b53
commit
e10a842034
1 changed files with 9 additions and 7 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# mypy: disable-error-code="no-redef"
|
||||
|
||||
import shutil
|
||||
from typing import Any
|
||||
from pathlib import Path
|
||||
|
@ -17,10 +19,10 @@ class View(Configs):
|
|||
def __init__(self, flags=None, repository=None, data=None):
|
||||
super(Configs, self).__init__()
|
||||
if flags is None:
|
||||
flags: list = []
|
||||
self.flags: list = flags
|
||||
self.repository: str = repository
|
||||
self.data: dict = data
|
||||
flags: list = [] # type: ignore[annotation-unchecked]
|
||||
self.flags: list = flags # type: ignore[annotation-unchecked]
|
||||
self.repository: str = repository # type: ignore[annotation-unchecked]
|
||||
self.data: dict = data # type: ignore[annotation-unchecked]
|
||||
|
||||
self.repos = Repositories()
|
||||
self.utils = Utilities()
|
||||
|
@ -36,12 +38,12 @@ class View(Configs):
|
|||
self.columns, self.rows = shutil.get_terminal_size()
|
||||
|
||||
self.download_only = None
|
||||
self.summary_message: str = ''
|
||||
self.summary_message: str = '' # type: ignore[annotation-unchecked]
|
||||
|
||||
self.option_for_reinstall: bool = self.utils.is_option(
|
||||
self.option_for_reinstall: bool = self.utils.is_option( # type: ignore[annotation-unchecked]
|
||||
('-r', '--reinstall'), flags)
|
||||
|
||||
self.option_for_yes: bool = self.utils.is_option(
|
||||
self.option_for_yes: bool = self.utils.is_option( # type: ignore[annotation-unchecked]
|
||||
('-y', '--yes'), flags)
|
||||
|
||||
def build_packages(self, slackbuilds: list, dependencies: list) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue