From e49650a3804d52754b8aad8170db61d7ea268a48 Mon Sep 17 00:00:00 2001 From: esc Date: Fri, 2 Aug 2024 15:41:01 +0200 Subject: [PATCH 1/2] any is a builtin, Any is a type As title --- numba_rvsdg/tests/test_ast_transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numba_rvsdg/tests/test_ast_transforms.py b/numba_rvsdg/tests/test_ast_transforms.py index bfc7dc08..0d279d72 100644 --- a/numba_rvsdg/tests/test_ast_transforms.py +++ b/numba_rvsdg/tests/test_ast_transforms.py @@ -33,7 +33,7 @@ def compare( expected: dict[str, dict[str, Any]], unreachable: set[int] = set(), empty: set[int] = set(), - arguments: list[any] = [], + arguments: list[Any] = [], ): # Execute function with first argument, if given. Ensure function is # sane and make sure it's picked up by coverage. From 456a0be5aa372aa239ec614db3f6c78a69a948c8 Mon Sep 17 00:00:00 2001 From: esc Date: Fri, 2 Aug 2024 15:53:49 +0200 Subject: [PATCH 2/2] fix typing of unreachable and empty too As title --- numba_rvsdg/tests/test_ast_transforms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numba_rvsdg/tests/test_ast_transforms.py b/numba_rvsdg/tests/test_ast_transforms.py index 0d279d72..d58c60e5 100644 --- a/numba_rvsdg/tests/test_ast_transforms.py +++ b/numba_rvsdg/tests/test_ast_transforms.py @@ -31,8 +31,8 @@ def compare( self, function: Callable[..., Any], expected: dict[str, dict[str, Any]], - unreachable: set[int] = set(), - empty: set[int] = set(), + unreachable: set[str] = set(), + empty: set[str] = set(), arguments: list[Any] = [], ): # Execute function with first argument, if given. Ensure function is