Skip to content

Commit

Permalink
remove outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Jul 28, 2022
1 parent 76444e7 commit 5e39928
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions di/container/_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ def bind(
This can be used as a function (for a permanent bind, cleared when `scope` is exited)
or as a context manager (the bind will be cleared when the context manager exits).
Binds are only identified by the identity of the callable and do not take into account
the scope or any other data from the dependency they are replacing.
"""

self._bind_hooks.append(hook)
Expand Down
2 changes: 0 additions & 2 deletions di/container/_solving.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ def build_task(
assert call is not None
scope = dependency.scope

# perf: we could keep around another variable instead of
# creating a set here
if dependency.call in {d.call for d in path}:
raise DependencyCycleError(
"Dependencies are in a cycle",
Expand Down

0 comments on commit 5e39928

Please sign in to comment.