Skip to content

Commit db028f7

Browse files
authored
Merge pull request #449 from mesozoic/fix_docs
Fixing documentation typos
2 parents 519c206 + 287211c commit db028f7

7 files changed

Lines changed: 13 additions & 13 deletions

File tree

docs/source/_substitutions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
.. |kwarg_replace| replace:: If ``True``, record is replaced in its entirety
6060
by provided fields; if a field is not included its value will
61-
bet set to null. If ``False``, only provided fields are updated.
61+
be set to null. If ``False``, only provided fields are updated.
6262

6363
.. |kwarg_use_field_ids| replace:: An optional boolean value that lets you return field objects where the
6464
key is the field id. This defaults to ``False``, which returns field objects where the key is the field name.

docs/source/about.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ About
44

55
Questions
66
*********
7-
Post them over in the project's `Github Page <http://www.github.com/gtalarico/pyairtable>`_
7+
Post them over in the project's `Github Page <https://github.com/gtalarico/pyairtable>`_
88

99
_______________________________________________
1010

@@ -18,7 +18,7 @@ Contribute
1818
# Create Virtual Environment
1919
python3 -m venv .venv
2020
source .venv/bin/activate
21-
make setup # Sets up githooks and install package and depedencies
21+
make setup # Sets up githooks and install package and dependencies
2222
make test # run test complete suite
2323
# Optional, use as needed
2424
make lint # lints locally - also done in pre-merge CI

docs/source/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ See :ref:`Migrating from 1.x to 2.0` for detailed migration notes.
233233
- `PR #277 <https://github.com/gtalarico/pyairtable/pull/277>`_
234234
* Added :meth:`Model.batch_save <pyairtable.orm.Model.batch_save>`
235235
and :meth:`Model.batch_delete <pyairtable.orm.Model.batch_delete>`.
236-
- `PR #274 <https://github.com/gtalarico/pyairtable/pull/277>`_
236+
- `PR #274 <https://github.com/gtalarico/pyairtable/pull/274>`_
237237
* Added :meth:`Api.whoami <pyairtable.Api.whoami>` method.
238238
- `PR #273 <https://github.com/gtalarico/pyairtable/pull/273>`_
239239
* pyAirtable will automatically retry requests when throttled by Airtable's QPS.

docs/source/orm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,10 @@ configured to memoize by default, pass ``memoize=False`` to override it.
585585
- Never
586586
* - :meth:`Model.from_id <pyairtable.orm.Model.from_id>`
587587
- Yes
588-
- Yes, unless ``fetch=True``
588+
- Yes, unless ``fetch=False``
589589
* - :meth:`Model.from_ids <pyairtable.orm.Model.from_ids>`
590590
- Yes
591-
- Yes, unless ``fetch=True``
591+
- Yes, unless ``fetch=False``
592592
* - :meth:`LinkField.populate <pyairtable.orm.fields.LinkField.populate>`
593593
- Yes
594594
- Yes, unless ``lazy=True``

docs/source/tables.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,21 @@ This library will return records as :class:`~pyairtable.api.types.RecordDict`.
126126
[
127127
{
128128
'id': 'recwPQIfs4wKPyc9D',
129-
'createdTime': '2017-03-14T22:04:31.000Z'
129+
'createdTime': '2017-03-14T22:04:31.000Z',
130130
'fields': {
131131
'Name': 'Alice',
132132
},
133133
},
134134
{
135135
'id': 'rechOLltN9SpPHq5o',
136-
'createdTime': '2017-03-20T15:21:50.000Z'
136+
'createdTime': '2017-03-20T15:21:50.000Z',
137137
'fields': {
138138
'Name': 'Bob',
139139
},
140140
},
141141
{
142142
'id': 'rec5eR7IzKSAOBHCz',
143-
'createdTime': '2017-08-05T21:47:52.000Z'
143+
'createdTime': '2017-08-05T21:47:52.000Z',
144144
'fields': {
145145
'Name': 'Carol',
146146
},

pyairtable/models/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ def rebuild_models(
317317
318318
Only intended for use within pyAirtable, like:
319319
320-
>>> from pyairtable.models._base import AirtableModel, update_forward_refs
320+
>>> from pyairtable.models._base import AirtableModel, rebuild_models
321321
>>> class A(AirtableModel): ...
322322
>>> class B(AirtableModel): ...
323323
... class B_One(AirtableModel): ...
324324
... class B_Two(AirtableModel): ...
325-
>>> update_forward_refs(vars())
325+
>>> rebuild_models(vars())
326326
"""
327327
memo = set() if memo is None else memo
328328
# If it's a type, update its refs, then do the same for any nested classes.

tests/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ def test_writable_and_readonly(create_instance):
233233
create_instance(writable=["foo"], readonly=["bar"])
234234

235235

236-
def test_update_forward_refs():
236+
def test_rebuild_models():
237237
"""
238-
Test that update_forward_refs does not get caught in an infinite loop.
238+
Test that rebuild_models does not get caught in an infinite loop.
239239
"""
240240

241241
class Outer(AirtableModel):

0 commit comments

Comments
 (0)