mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-11-24 03:45:48 +03:00
Use typing_extensions.Self on set_selector and set_providers
This commit is contained in:
parent
48a51f914c
commit
8e6f6dfcff
|
|
@ -21,7 +21,7 @@ from typing import (
|
|||
overload,
|
||||
)
|
||||
|
||||
from typing_extensions import TypeVar
|
||||
from typing_extensions import Self as _Self, TypeVar
|
||||
|
||||
try:
|
||||
import yaml
|
||||
|
|
@ -551,10 +551,10 @@ class Selector(Provider[T_Any]):
|
|||
def __getattr__(self, name: str) -> Provider[T_Any]: ...
|
||||
@property
|
||||
def selector(self) -> Optional[_Callable[..., Any]]: ...
|
||||
def set_selector(self, selector: Optional[_Callable[..., Any]]) -> Selector[T_Any]: ...
|
||||
def set_selector(self, selector: Optional[_Callable[..., Any]]) -> _Self: ...
|
||||
@property
|
||||
def providers(self) -> _Dict[str, Provider[T_Any]]: ...
|
||||
def set_providers(self, **providers: Provider) -> Selector[T_Any]: ...
|
||||
def set_providers(self, **providers: Provider) -> _Self: ...
|
||||
|
||||
class ProvidedInstanceFluentInterface:
|
||||
def __getattr__(self, item: Any) -> AttributeGetter: ...
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user