diff options
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
| -rw-r--r-- | lib/sqlalchemy/sql/elements.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index 7a27690b8..c48338303 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -3764,7 +3764,7 @@ class Grouping(GroupedElement, ColumnElement): self.type = getattr(element, "type", type_api.NULLTYPE) def _with_binary_element_type(self, type_): - return Grouping(self.element._with_binary_element_type(type_)) + return self.__class__(self.element._with_binary_element_type(type_)) @util.memoized_property def _is_implicitly_boolean(self): |
