From b48569614af26c39973cc41c14b8b272499a9f74 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Fri, 8 Nov 2024 08:57:11 -0500 Subject: [PATCH] remove test --- tests/test_types.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tests/test_types.py b/tests/test_types.py index f84584c97..c27637a51 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -1,19 +1,15 @@ from collections.abc import Sequence from enum import Enum from pathlib import Path -from typing import TYPE_CHECKING, Annotated, Optional, Union +from typing import Annotated, Optional, Union from unittest.mock import Mock import pytest from typing_extensions import get_args from magicgui import magicgui, register_type, type_map, type_registered, types, widgets -from magicgui._type_resolution import resolve_single_type from magicgui.type_map._type_map import _RETURN_CALLBACKS -if TYPE_CHECKING: - import numpy - def test_forward_refs(): """Test that forward refs parameter annotations get resolved.""" @@ -135,14 +131,6 @@ def test_widget_options(): assert choice2._nullable is True -def test_nested_forward_refs(): - resolved = resolve_single_type(Optional['list["numpy.ndarray"]']) - - import numpy as np - - assert resolved == Optional[list[np.ndarray]] - - def test_type_registered(): assert isinstance(widgets.create_widget(annotation=Path), widgets.FileEdit) with type_registered(Path, widget_type=widgets.LineEdit):