Add preferred way to import to README

Simple addition to README that hopefully make the examples more obvious.
This commit is contained in:
Jamie Lennox 2016-01-14 12:34:08 +11:00
parent bb70ee3928
commit 0d900c7423

View File

@ -35,6 +35,12 @@ All named parameters after `*` must be a keyword:
To replicate this behaviour with the positional decorator you simply specify To replicate this behaviour with the positional decorator you simply specify
how many arguments may be passed positionally. how many arguments may be passed positionally.
First to import the decorator we typically use:
.. code:: python
>> from positional import positional
Replicating the Example above: Replicating the Example above:
.. code:: python .. code:: python