-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
600 additions
and
796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""FastDepends - extracted and cleared from HTTP domain Fastapi Dependency Injection System""" | ||
|
||
__version__ = "1.1.7" | ||
__version__ = "2.0.0b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from fast_depends.provider import dependency_provider | ||
from fast_depends.usage import Depends, inject | ||
from fast_depends.dependencies import dependency_provider | ||
from fast_depends.use import Depends, inject | ||
|
||
__all__ = ( | ||
"inject", | ||
"Depends", | ||
"dependency_provider", | ||
"inject", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from pydantic.version import VERSION as PYDANTIC_VERSION | ||
|
||
PYDANTIC_V2 = PYDANTIC_VERSION.startswith("2.") | ||
|
||
from pydantic import BaseModel, create_model | ||
|
||
if PYDANTIC_V2: | ||
from pydantic._internal._typing_extra import ( | ||
eval_type_lenient as evaluate_forwardref, | ||
) | ||
else: | ||
from pydantic.typing import evaluate_forwardref | ||
|
||
|
||
__all__ = ( | ||
"BaseModel", | ||
"create_model", | ||
"evaluate_forwardref", | ||
"PYDANTIC_V2", | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from fast_depends.core.build import build_call_model | ||
from fast_depends.core.model import CallModel | ||
|
||
__all__ = ( | ||
"CallModel", | ||
"build_call_model", | ||
) |
Oops, something went wrong.