Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit 3dac1d4

Browse files
committed
**params -> params
1 parent dff33a2 commit 3dac1d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You can also inspect the document URL and title.
6262

6363
Documents in the Python Core API library are immutable objects. To perform a transition we use the `.action()` function and assign the resulting new document.
6464

65-
>>> doc = coreapi.action(doc, ['add_note'], description='My new note.')
65+
>>> doc = coreapi.action(doc, ['add_note'], params={'description': 'My new note.'})
6666

6767
The arguments to `.action()` are:
6868

@@ -72,7 +72,7 @@ The arguments to `.action()` are:
7272

7373
Transitions may update part of the document tree.
7474

75-
>>> doc = coreapi.action(doc, ['notes', 0, 'edit'], complete=True)
75+
>>> doc = coreapi.action(doc, ['notes', 0, 'edit'], params={'complete': True})
7676
>>> doc['notes'][0]['complete']
7777
True
7878

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy