Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Nov 8, 2024
1 parent 7b49357 commit b485696
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/test_types.py
Original file line number Diff line number Diff line change
@@ -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."""
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b485696

Please sign in to comment.