-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename Depends to Provide * Use weakref * Remove ResolvedDependency * Rearrange code and add docstrings * Refactor resource decorator * More refactoring * More refactoring * Duplicated code; I don't know how to rewrite this in a nice way * Add init_resources * trying to refactor more [meh] * Add lock * Update README.md
- Loading branch information
Showing
10 changed files
with
315 additions
and
187 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
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 @@ | ||
from nanodi.nanodi import Depends, inject, resource, shutdown_resources | ||
from nanodi.nanodi import Provide, init_resources, inject, resource, shutdown_resources | ||
|
||
__all__ = ["Depends", "inject", "shutdown_resources", "resource"] | ||
__all__ = ["Provide", "inject", "init_resources", "shutdown_resources", "resource"] |
Oops, something went wrong.