Update resource provider typing stub for stutdown

This commit is contained in:
Roman Mogylatov 2020-11-28 21:34:48 -05:00
parent 4db931d38c
commit fc2633faa3

View File

@ -2,6 +2,7 @@ from __future__ import annotations
from pathlib import Path
from typing import (
Awaitable,
TypeVar,
Generic,
Type,
@ -300,7 +301,7 @@ class Resource(Provider, Generic[T]):
@property
def initialized(self) -> bool: ...
def init(self) -> T: ...
def shutdown(self) -> None: ...
def shutdown(self) -> Optional[Awaitable]: ...
class Container(Provider):