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
3 changes: 3 additions & 0 deletions docs/managers/credit.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ expiry_date: date | Literal[False]

The date the credit expires, if an expiry date is set.

*Changed in version 0.2.6*: Fixed incorrect annotation for `expiry_date`
by marking it as optional.

### `initial_balance`

```python
Expand Down
3 changes: 3 additions & 0 deletions docs/managers/grant.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ expiry_date: date | Literal[False]

The date the grant expires, if an expiry date is set.

*Changed in version 0.2.6*: Fixed incorrect annotation for `expiry_date`
by marking it as optional.

### `grant_type_id`

```python
Expand Down
6 changes: 5 additions & 1 deletion openstack_odooclient/managers/credit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ class Credit(RecordBase["CreditManager"]):
"""The current remaining balance on the credit."""

expiry_date: date | Literal[False]
"""The date the credit expires, if an expiry date is set."""
"""The date the credit expires, if an expiry date is set.

*Changed in version 0.2.6*: Fixed incorrect annotation for ``expiry_date``
by marking it as optional.
"""

initial_balance: float
"""The initial balance this credit started off with."""
Expand Down
6 changes: 5 additions & 1 deletion openstack_odooclient/managers/grant.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@

class Grant(RecordBase["GrantManager"]):
expiry_date: date | Literal[False]
"""The date the grant expires, if an expiry date is set."""
"""The date the grant expires, if an expiry date is set.

*Changed in version 0.2.6*: Fixed incorrect annotation for ``expiry_date``
by marking it as optional.
"""

grant_type_id: Annotated[int, ModelRef("grant_type", GrantType)]
"""The ID of the type of this grant."""
Expand Down
Loading