mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-30 05:23:59 +03:00
12 lines
214 B
Python
12 lines
214 B
Python
|
from typing import Coroutine
|
||
|
|
||
|
from dependency_injector import providers
|
||
|
|
||
|
|
||
|
async def _coro() -> None:
|
||
|
...
|
||
|
|
||
|
# Test 1: to check the return type
|
||
|
provider1 = providers.Coroutine(_coro)
|
||
|
var1: Coroutine = provider1()
|