Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/_substitutions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

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

.. |kwarg_use_field_ids| replace:: An optional boolean value that lets you return field objects where the
key is the field id. This defaults to ``False``, which returns field objects where the key is the field name.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ About

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

_______________________________________________

Expand All @@ -18,7 +18,7 @@ Contribute
# Create Virtual Environment
python3 -m venv .venv
source .venv/bin/activate
make setup # Sets up githooks and install package and depedencies
make setup # Sets up githooks and install package and dependencies
make test # run test complete suite
# Optional, use as needed
make lint # lints locally - also done in pre-merge CI
Expand Down
2 changes: 1 addition & 1 deletion docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ See :ref:`Migrating from 1.x to 2.0` for detailed migration notes.
- `PR #277 <https://github.com/gtalarico/pyairtable/pull/277>`_
* Added :meth:`Model.batch_save <pyairtable.orm.Model.batch_save>`
and :meth:`Model.batch_delete <pyairtable.orm.Model.batch_delete>`.
- `PR #274 <https://github.com/gtalarico/pyairtable/pull/277>`_
- `PR #274 <https://github.com/gtalarico/pyairtable/pull/274>`_
* Added :meth:`Api.whoami <pyairtable.Api.whoami>` method.
- `PR #273 <https://github.com/gtalarico/pyairtable/pull/273>`_
* pyAirtable will automatically retry requests when throttled by Airtable's QPS.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/orm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,10 @@ configured to memoize by default, pass ``memoize=False`` to override it.
- Never
* - :meth:`Model.from_id <pyairtable.orm.Model.from_id>`
- Yes
- Yes, unless ``fetch=True``
- Yes, unless ``fetch=False``
* - :meth:`Model.from_ids <pyairtable.orm.Model.from_ids>`
- Yes
- Yes, unless ``fetch=True``
- Yes, unless ``fetch=False``
* - :meth:`LinkField.populate <pyairtable.orm.fields.LinkField.populate>`
- Yes
- Yes, unless ``lazy=True``
Expand Down
6 changes: 3 additions & 3 deletions docs/source/tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,21 @@ This library will return records as :class:`~pyairtable.api.types.RecordDict`.
[
{
'id': 'recwPQIfs4wKPyc9D',
'createdTime': '2017-03-14T22:04:31.000Z'
'createdTime': '2017-03-14T22:04:31.000Z',
'fields': {
'Name': 'Alice',
},
},
{
'id': 'rechOLltN9SpPHq5o',
'createdTime': '2017-03-20T15:21:50.000Z'
'createdTime': '2017-03-20T15:21:50.000Z',
'fields': {
'Name': 'Bob',
},
},
{
'id': 'rec5eR7IzKSAOBHCz',
'createdTime': '2017-08-05T21:47:52.000Z'
'createdTime': '2017-08-05T21:47:52.000Z',
'fields': {
'Name': 'Carol',
},
Expand Down
4 changes: 2 additions & 2 deletions pyairtable/models/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ def rebuild_models(

Only intended for use within pyAirtable, like:

>>> from pyairtable.models._base import AirtableModel, update_forward_refs
>>> from pyairtable.models._base import AirtableModel, rebuild_models
>>> class A(AirtableModel): ...
>>> class B(AirtableModel): ...
... class B_One(AirtableModel): ...
... class B_Two(AirtableModel): ...
>>> update_forward_refs(vars())
>>> rebuild_models(vars())
"""
memo = set() if memo is None else memo
# If it's a type, update its refs, then do the same for any nested classes.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ def test_writable_and_readonly(create_instance):
create_instance(writable=["foo"], readonly=["bar"])


def test_update_forward_refs():
def test_rebuild_models():
"""
Test that update_forward_refs does not get caught in an infinite loop.
Test that rebuild_models does not get caught in an infinite loop.
"""

class Outer(AirtableModel):
Expand Down
Loading