We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f778e commit f374237Copy full SHA for f374237
psqlextra/fields/hstore_field.py
@@ -1,4 +1,4 @@
1
-from typing import List, Tuple, Union
+from typing import List, Optional, Tuple, Union
2
3
from django.contrib.postgres.fields import HStoreField as DjangoHStoreField
4
from django.db.models.expressions import Expression
@@ -17,8 +17,8 @@ class HStoreField(DjangoHStoreField):
17
def __init__(
18
self,
19
*args,
20
- uniqueness: List[Union[str, Tuple[str, ...]]] = None,
21
- required: List[str] = None,
+ uniqueness: Optional[List[Union[str, Tuple[str, ...]]]] = None,
+ required: Optional[List[str]] = None,
22
**kwargs
23
):
24
"""Initializes a new instance of :see:HStoreField.
0 commit comments