From 3a17b07d2eae0abc571d36d6e07e6c61cfb4a42d Mon Sep 17 00:00:00 2001 From: Jakub Stasiak Date: Mon, 2 Sep 2013 01:34:37 +0100 Subject: [PATCH] Change this sample to use regular Python block --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2f55592..e325a96 100644 --- a/README.md +++ b/README.md @@ -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