mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
flake warnings (#304)
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
from __future__ import annotations
|
||||
from abc import ABC, abstractmethod
|
||||
from enum import Enum
|
||||
from typing import List, Optional, Iterable
|
||||
|
||||
from bauh.api.paths import CACHE_DIR
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
if TYPE_CHECKING:
|
||||
from bauh.api.abstract.controller import SoftwareManager
|
||||
|
||||
|
||||
class CustomSoftwareAction:
|
||||
|
||||
def __init__(self, i18n_label_key: str, i18n_status_key: str, icon_path: str, manager_method: str,
|
||||
requires_root: bool, manager: "SoftwareManager" = None,
|
||||
requires_root: bool, manager: SoftwareManager = None,
|
||||
backup: bool = False, refresh: bool = True,
|
||||
i18n_confirm_key: str = None,
|
||||
requires_internet: bool = False,
|
||||
|
||||
@@ -193,7 +193,7 @@ class TextComponent(ViewComponent):
|
||||
|
||||
class TwoStateButtonComponent(ViewComponent):
|
||||
|
||||
def __init__(self, label: str, tooltip: str = None, state: bool = False, id_: str = None):
|
||||
def __init__(self, label: str, tooltip: str = None, state: bool = False, id_: str = None):
|
||||
super(TwoStateButtonComponent, self).__init__(id_=id_)
|
||||
self.label = label
|
||||
self.tooltip = tooltip
|
||||
|
||||
@@ -3,4 +3,3 @@ from typing import Optional
|
||||
|
||||
class NoInternetException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ class HttpClient:
|
||||
if size:
|
||||
try:
|
||||
return int(size)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def get_content_length(self, url: str, session: bool = True) -> Optional[str]:
|
||||
|
||||
Reference in New Issue
Block a user