Skip to content

Commit

Permalink
Update test_typeshed for typeshed change (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Jul 12, 2024
1 parent af3309a commit 9390c2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyanalyze/test_typeshed.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,14 @@ def test_struct_time(self):

def test_context_manager(self):
int_tv = TypedValue(int)
missing = AnyValue(AnySource.generic_argument)
self.check(
{contextlib.AbstractContextManager: [int_tv]},
{contextlib.AbstractContextManager: [int_tv, missing]},
contextlib.AbstractContextManager,
[int_tv],
)
self.check(
{contextlib.AbstractAsyncContextManager: [int_tv]},
{contextlib.AbstractAsyncContextManager: [int_tv, missing]},
contextlib.AbstractAsyncContextManager,
[int_tv],
)
Expand Down

0 comments on commit 9390c2e

Please sign in to comment.