From 6d9d34c0f6a4fe233e36552079577898c0be9872 Mon Sep 17 00:00:00 2001 From: ZipFile Date: Sun, 12 Jan 2025 12:18:21 +0000 Subject: [PATCH] Add test case for Provider.provider type propagation --- tests/typing/provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/typing/provider.py b/tests/typing/provider.py index 6ceed96a..18afd69a 100644 --- a/tests/typing/provider.py +++ b/tests/typing/provider.py @@ -4,6 +4,7 @@ # Test 1: to check .provided attribute provider1: providers.Provider[int] = providers.Object(1) provided: int = provider1.provided() +provider1_delegate: providers.Provider[int] = provider1.provider # Test 2: to check async mode API provider2: providers.Provider = providers.Provider()