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 770eea8 commit bcab164Copy full SHA for bcab164
clickhouse_backend/models/engines.py
@@ -1,5 +1,5 @@
1
from django.db.models import Func, Value
2
-from django.utils.itercompat import is_iterable
+from collections.abc import Iterable
3
4
__all__ = [
5
"Distributed",
@@ -139,7 +139,7 @@ def __init__(
139
for key in ["order_by", "primary_key", "partition_by"]:
140
value = getattr(self, key)
141
if value is not None:
142
- if isinstance(value, str) or not is_iterable(value):
+ if isinstance(value, str) or not isinstance(value, Iterable):
143
value = (value,)
144
setattr(self, key, value)
145
elif not isinstance(value, tuple):
0 commit comments