clan-cli: Fix some type errors in tests

This commit is contained in:
Qubasa
2024-08-21 15:48:26 +02:00
parent f74df54edd
commit 19fe0432d9
6 changed files with 24 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
from dataclasses import dataclass, field
from pathlib import Path
from typing import Literal
from typing import Any, Literal
import pytest
@@ -128,7 +128,7 @@ def test_simple_field_missing() -> None:
class Person:
name: str
person_dict = {}
person_dict: Any = {}
with pytest.raises(ClanError):
from_dict(Person, person_dict)
@@ -151,7 +151,7 @@ def test_nullable_non_exist() -> None:
class Person:
name: None
person_dict = {}
person_dict: Any = {}
with pytest.raises(ClanError):
from_dict(Person, person_dict)