Change this sample to use regular Python block

This commit is contained in:
Jakub Stasiak 2013-09-02 01:34:37 +01:00
parent ee73541329
commit 3a17b07d2e
1 changed files with 3 additions and 7 deletions

View File

@ -366,13 +366,9 @@ AttributeError: 'X' object has no attribute 'y'
**Note 2**: When class is decorated with `inject` decorator you need to use keyword arguments when instantiating the class manually:
```pycon
>>> x = X(y=2) # that's ok
>>> x = X(2) # that'll result in a CallError
Traceback (most recent call last):
...
CallError: Keyword argument y not found
```python
x = X(y=2) # that's ok
x = X(2) # this'll raise CallError
```
### Injector