disko2: Fix all mypy type checking errors

Belongs to d382a3cccf, but I authored that
on another machine.

Making sure vscode uses mypy from the environment is very important now,
because some of these errors get triggered in different ways depending
on the version.
This commit is contained in:
Felix Uhl committed 2024-11-17 19:39:07 +01:00
1 parent a0e8f7f587
commit ae7891e21f
22 files changed
+190 -145

No files matched your search

+7 -6
View File
@@ -1,14 +1,15 @@
from disko_lib.dict_diff import dict_diff
from disko_lib.json_types import JsonDict
def test_dict_diff_basic() -> None:
left = {
left: JsonDict = {
"a": 1,
"b": 2,
"c": 3,
"d": 4,
}
right = {
right: JsonDict = {
"a": 1,
"b": 3,
"c": 4,
@@ -39,12 +40,12 @@ def test_dict_diff_basic() -> None:
def test_dict_diff_arrays() -> None:
left = {
left: JsonDict = {
"a": [1, 2, 3],
"b": [4, 5, 6],
"c": [7, 8, 9],
}
right = {
right: JsonDict = {
"a": [1, 2, 3],
"b": [4, 5, 7],
"c": [7, 8, 9],
@@ -69,7 +70,7 @@ def test_dict_diff_arrays() -> None:
def test_dict_diff_nested() -> None:
left = {
left: JsonDict = {
"a": {
"b": {
"c": 1,
@@ -87,7 +88,7 @@ def test_dict_diff_nested() -> None:
},
},
}
right = {
right: JsonDict = {
"a": {
"b": {
"c": 1,