Skip to content

Commit 47fd1f4

Browse files
committed
PYCBC-1755: Update JSONType type hint to adhere to static typing standards
Changes ------- * Change `JSONType` hint to use `Mapping` instead of `Dict` and `Sequence` instead of `List` Change-Id: Iea87189e1d20010d4fc23da98e7cc5d0c7cbf286 Reviewed-on: https://review.couchbase.org/c/couchbase-python-client/+/242353 Reviewed-by: Dimitris Christodoulou <dimitris.christodoulou@couchbase.com> Tested-by: Build Bot <build@couchbase.com>
1 parent e14bbae commit 47fd1f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

couchbase/_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
Callable,
2424
Dict,
2525
List,
26+
Mapping,
27+
Sequence,
2628
Tuple,
2729
Type,
2830
TypeVar,
@@ -33,7 +35,7 @@
3335
from couchbase.logic.pycbc_core import pycbc_exception
3436

3537
JSONType = Union[str, int, float, bool,
36-
None, Dict[str, Any], List[Any]]
38+
None, Mapping[str, Any], Sequence[Any]]
3739

3840

3941
def is_null_or_empty(

0 commit comments

Comments
 (0)