Skip to content

Commit 923cc98

Browse files
committed
Merge pull request lsbardel#68 from stephanpoetschner/patch-1
Minor typos in documentation
2 parents 44c9299 + f235c0c commit 923cc98

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

docs/source/examples/query.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ Concatenating filters
7878

7979
You can perform further selection by concatenating filters::
8080

81-
qs = models.instrument.filter(ccy=('EUR','USD')).filter(types=('equity',bond'))
81+
qs = models.instrument.filter(ccy=('EUR','USD')).filter(types=('equity','bond'))
8282
8383
or equivalently::
8484
85-
qs = models.instrument.filter(ccy=('EUR','USD'), types=('equity',bond'))
85+
qs = models.instrument.filter(ccy=('EUR','USD'), types=('equity','bond'))
8686

8787
Which is equivalent to an **intersection** of two filter statement::
8888

8989
q1 = models.fund.filter(ccy=('EUR', 'USD'))
90-
q2 = models.fund.filter(types=('equity',bond'))
90+
q2 = models.fund.filter(types=('equity','bond'))
9191
qs = q1.intersect(q2)
9292

9393

@@ -105,7 +105,7 @@ You can exclude a list of fields::
105105

106106
Concatenation is also supported::
107107

108-
qs = models.instrument.exclude(ccy=('EUR','USD'), types=('equity',bond'))
108+
qs = models.instrument.exclude(ccy=('EUR','USD'), types=('equity','bond'))
109109

110110

111111
Union
@@ -130,7 +130,7 @@ if we need all instruments with ``ccy='EUR'`` **OR** ``type='equity'``? We use t
130130

131131
Range lookups
132132
====================
133-
133+
134134
Range lookups is how you refine the query methods you have learned so far.
135135
They are specified by appending a suffix to the field name preceded by
136136
double underscore ``__``.
@@ -259,4 +259,4 @@ This returns the sixth through tenth objects::
259259
260260
This returns the last 5 objects::
261261

262-
>> qs = models.instrument.query()[-5:]
262+
>> qs = models.instrument.query()[-5:]

docs/source/examples/registration.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.. _tutorial-registration:
32

43

@@ -43,7 +42,7 @@ The most straightforward and intuitive way, for accessing managers, is to use
4342
the :class:`Router` as a dictionary of :class:`Manager`::
4443

4544

46-
# Crate a Query for Instrument
45+
# Create a Query for Instrument
4746
query = models[Instrument].query()
4847
#
4948
# Create a new Instrument and save it to the backend server

0 commit comments

Comments
 (0)