Skip to content

Commit 255852f

Browse files
committed
Fix tests.
1 parent e9156a8 commit 255852f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/util/test_typing.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
from __future__ import annotations
44

55
from pathlib import Path
6-
from types import GenericAlias
7-
from typing import TYPE_CHECKING, get_args
6+
from typing import TYPE_CHECKING
87

98
from pymatgen.core import Composition, DummySpecies, Element, Species
109
from pymatgen.entries import Entry
11-
from pymatgen.util.typing import CompositionLike, EntryLike, PathLike, PbcLike, SpeciesLike
10+
from pymatgen.util.typing import CompositionLike, EntryLike, PathLike, SpeciesLike
1211

1312
if TYPE_CHECKING:
1413
from typing import Any
@@ -59,11 +58,6 @@ def test_composition_like():
5958
assert isinstance(DummySpecies("X"), CompositionLike)
6059

6160

62-
def test_pbc_like():
63-
assert isinstance(PbcLike, GenericAlias)
64-
assert get_args(PbcLike) == (bool, bool, bool)
65-
66-
6761
def test_pathlike():
6862
assert isinstance("path/to/file", PathLike)
6963
assert isinstance(Path("path/to/file"), PathLike)

0 commit comments

Comments
 (0)