Skip to content

Commit a7f0bc4

Browse files
authored
Replace non-existing bind_scope in docs (#265)
Replacing `bind_scope` with `install` as `bind_scope` does not exist.
1 parent 43b002e commit a7f0bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/scopes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ This can be used like so::
4949
class MyClass:
5050
pass
5151

52-
Scopes are bound in modules with the :meth:`Binder.bind_scope` method::
52+
Scopes are bound in modules with the :meth:`Binder.install` method::
5353

5454
class MyModule(Module):
5555
def configure(self, binder):
56-
binder.bind_scope(CustomScope)
56+
binder.install(CustomScope)
5757

5858
Scopes can be retrieved from the injector, as with any other instance. They are singletons across the life of the injector::
5959

0 commit comments

Comments
 (0)