mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 18:07:44 +03:00 
			
		
		
		
	Update resource provider typing stub for stutdown
This commit is contained in:
		
							parent
							
								
									4db931d38c
								
							
						
					
					
						commit
						fc2633faa3
					
				| 
						 | 
					@ -2,6 +2,7 @@ from __future__ import annotations
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from pathlib import Path
 | 
					from pathlib import Path
 | 
				
			||||||
from typing import (
 | 
					from typing import (
 | 
				
			||||||
 | 
					    Awaitable,
 | 
				
			||||||
    TypeVar,
 | 
					    TypeVar,
 | 
				
			||||||
    Generic,
 | 
					    Generic,
 | 
				
			||||||
    Type,
 | 
					    Type,
 | 
				
			||||||
| 
						 | 
					@ -300,7 +301,7 @@ class Resource(Provider, Generic[T]):
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def initialized(self) -> bool: ...
 | 
					    def initialized(self) -> bool: ...
 | 
				
			||||||
    def init(self) -> T: ...
 | 
					    def init(self) -> T: ...
 | 
				
			||||||
    def shutdown(self) -> None: ...
 | 
					    def shutdown(self) -> Optional[Awaitable]: ...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Container(Provider):
 | 
					class Container(Provider):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user