Open skewty opened 2 weeks ago
I get how
@inject(dependency_overrides_provider=provider) # pyright: ignore [reportCallIssue]
def func(dependency: int = Depends(abc_func)) -> int:
return dependency
fixes one of them. It is perhaps wise to ensure this is the recommended way in the documentation and why it is the recommended way (an explanation of the troubles one may encounter if using just Annotation).
That just leaves the type hinting of inject which seems to need some adjustment to appease pyright (haven't tried mypy against it yet).
I added the pyright ignore comments to make pyright happy. Can the signatures be adjusted to alleviate this usability issue?