Use typing_extensions.Self on set_selector and set_providers

This commit is contained in:
Leonardus Chen 2025-10-24 18:28:28 +07:00
parent 48a51f914c
commit 8e6f6dfcff

View File

@ -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: ...