diff --git a/docs/managers/credit.md b/docs/managers/credit.md index f0424b6..acf0b95 100644 --- a/docs/managers/credit.md +++ b/docs/managers/credit.md @@ -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 diff --git a/docs/managers/grant.md b/docs/managers/grant.md index db74988..895515c 100644 --- a/docs/managers/grant.md +++ b/docs/managers/grant.md @@ -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 diff --git a/openstack_odooclient/managers/credit.py b/openstack_odooclient/managers/credit.py index aa1a28e..167bcdd 100644 --- a/openstack_odooclient/managers/credit.py +++ b/openstack_odooclient/managers/credit.py @@ -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.""" diff --git a/openstack_odooclient/managers/grant.py b/openstack_odooclient/managers/grant.py index c533561..ef61c36 100644 --- a/openstack_odooclient/managers/grant.py +++ b/openstack_odooclient/managers/grant.py @@ -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."""