Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
tungol committed Dec 10, 2024
1 parent 1a52482 commit 4879acb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stdlib/@tests/test_cases/builtins/check_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,27 +102,27 @@ def test_iterable_tuple_overload(x: Iterable[tuple[int, str]]) -> dict[int, str]
# Pyright doesn't have a version of no-any-return,
# and mypy doesn't have a type: ignore that pyright will ignore.
# def test1() -> str:
# return d_any["key"] # type: ignore[no-any-return]
# return d_any["key"] # mypy: ignore[no-any-return]


def test2() -> str:
return d_any.get("key") # type: ignore[return-value]


# def test3() -> str:
# return d_any.get("key", None) # type: ignore[no-any-return]
# return d_any.get("key", None) # mypy: ignore[no-any-return]
#
#
# def test4() -> str:
# return d_any.get("key", any_value) # type: ignore[no-any-return]
# return d_any.get("key", any_value) # mypy: ignore[no-any-return]
#
#
# def test5() -> str:
# return d_any.get("key", str_value) # type: ignore[no-any-return]
# return d_any.get("key", str_value) # mypy: ignore[no-any-return]
#
#
# def test6() -> str:
# return d_any.get("key", int_value) # type: ignore[no-any-return]
# return d_any.get("key", int_value) # mypy: ignore[no-any-return]


def test7() -> str:
Expand Down

0 comments on commit 4879acb

Please sign in to comment.