Skip to content

Commit f374237

Browse files
seroyPhotonios
authored andcommitted
Add missing Optional annotation in HStoreField
1 parent 73f778e commit f374237

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

psqlextra/fields/hstore_field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Tuple, Union
1+
from typing import List, Optional, Tuple, Union
22

33
from django.contrib.postgres.fields import HStoreField as DjangoHStoreField
44
from django.db.models.expressions import Expression
@@ -17,8 +17,8 @@ class HStoreField(DjangoHStoreField):
1717
def __init__(
1818
self,
1919
*args,
20-
uniqueness: List[Union[str, Tuple[str, ...]]] = None,
21-
required: List[str] = None,
20+
uniqueness: Optional[List[Union[str, Tuple[str, ...]]]] = None,
21+
required: Optional[List[str]] = None,
2222
**kwargs
2323
):
2424
"""Initializes a new instance of :see:HStoreField.

0 commit comments

Comments
 (0)