8000 test suite characterizing `dict.get()` by tungol · Pull Request #13225 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

test suite characterizing dict.get() #13225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 28, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try again
  • Loading branch information
tungol committed Dec 10, 2024
commit 4879acb52cbc8d867823996ddb848794ae515dc2
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
Loading
0