Skip to content

Commit

Permalink
Selectively enable test_new_style_type_hints test
Browse files Browse the repository at this point in the history
  • Loading branch information
pschanely committed Nov 14, 2024
1 parent 68fc777 commit cf7df5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crosshair/core_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,11 +1015,11 @@ def f(s: str) -> bool:

check_states(f, CANNOT_CONFIRM)

@pytest.mark.skip("Python 3.9+ is not supported yet")
def test_new_style_type_hints(self):
if sys.version_info >= (3, 9):
def test_new_style_type_hints():
def f(ls: list[int]) -> List[int]:
"""
pre: len(ls) == 2
pre: len(ls) == 1
post: _[0] != 'a'
"""
return ls
Expand Down

0 comments on commit cf7df5b

Please sign in to comment.