Fix Python test setup issues
This commit is contained in:
parent
6878652583
commit
3d91627253
3 changed files with 13 additions and 5 deletions
|
@ -1,8 +1,10 @@
|
|||
from typing import Any
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
import pytest
|
||||
|
||||
from pyority_queue import Comparable, IndexedQueue
|
||||
from pyority_queue import IndexedQueue
|
||||
if TYPE_CHECKING:
|
||||
from pyority_queue import Comparable
|
||||
|
||||
|
||||
type IndexedQueueInitializer = dict[Any, Comparable] | list[tuple[Any, Comparable]] | tuple[tuple[Any, Comparable], ...]
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
from typing import Any
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
import pytest
|
||||
|
||||
from pyority_queue import Comparable, PairedQueue
|
||||
from pyority_queue import PairedQueue
|
||||
if TYPE_CHECKING:
|
||||
from pyority_queue import Comparable
|
||||
|
||||
|
||||
type PairedQueueInitializer = dict[Any, Comparable] | list[tuple[Any, Comparable]] | tuple[tuple[Any, Comparable], ...]
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
from typing import TYPE_CHECKING
|
||||
|
||||
import pytest
|
||||
|
||||
from pyority_queue import PureQueue
|
||||
if TYPE_CHECKING:
|
||||
from pyority_queue import Comparable
|
||||
|
||||
|
||||
type PureQueueInitializer = list[float] | list[int] | tuple[float, ...] | tuple[int, ...]
|
||||
type PureQueueInitializer = list[Comparable] | tuple[Comparable, ...]
|
||||
|
||||
|
||||
def test_empty_creation():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue