mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
mypy: Add support for version 2.1
Tests: - Unit tests pass. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
d2a959a277
commit
f2e898090c
3 files changed
+13
-10
No files matched your search
@@ -9,6 +9,7 @@ import logging
|
||||
import pathlib
|
||||
import threading
|
||||
from copy import deepcopy
|
||||
from typing import Any
|
||||
|
||||
import psutil
|
||||
from django.urls import reverse_lazy
|
||||
@@ -40,7 +41,7 @@ _description = [
|
||||
|
||||
logger = logging.Logger(__name__)
|
||||
|
||||
current_results = {}
|
||||
current_results: dict[str, Any] = {}
|
||||
results_lock = threading.Lock()
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import logging
|
||||
import threading
|
||||
from typing import Any
|
||||
|
||||
from plinth import cfg
|
||||
from plinth.utils import import_from_gi
|
||||
@@ -40,7 +41,7 @@ _ERRORS: dict[str, str] = {
|
||||
'Failed': 'org.freedesktop.UDisks2.Error.Failed',
|
||||
}
|
||||
|
||||
_jobs = {}
|
||||
_jobs: dict[str, Any] = {}
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in new issue
Block a user