Skip to content

Commit

Permalink
style: use assert_never
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Aug 5, 2023
1 parent e4b1377 commit 18071a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fast_depends/__about__.py
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__ = "2.1.4"
__version__ = "2.1.5"
2 changes: 2 additions & 0 deletions fast_depends/use.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ async def injected_wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
**kwargs,
)
return r
raise AssertionError("unreachable")

else:

Expand All @@ -160,6 +161,7 @@ def injected_wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
**kwargs,
)
return r
raise AssertionError("unreachable")

return injected_wrapper

Expand Down

0 comments on commit 18071a1

Please sign in to comment.