diff --git a/python/PyQt6/core/__init__.py.in b/python/PyQt6/core/__init__.py.in index b57fc3eea27..f8a6aa9474f 100644 --- a/python/PyQt6/core/__init__.py.in +++ b/python/PyQt6/core/__init__.py.in @@ -70,9 +70,9 @@ def _date_range_repr(self): QgsDateTimeRange.__repr__ = _datetime_range_repr QgsDateRange.__repr__ = _date_range_repr - QgsProperty.__bool__ = lambda self: self.propertyType() != Qgis.PropertyType.Invalid QgsOptionalExpression.__bool__ = lambda self: self.enabled() +QgsUnsetAttributeValue.__hash__ = lambda self: 2178310 # add some __repr__ methods to processing classes def _processing_source_repr(self): diff --git a/python/core/__init__.py.in b/python/core/__init__.py.in index 3a2be42fff1..50d4f624393 100644 --- a/python/core/__init__.py.in +++ b/python/core/__init__.py.in @@ -73,7 +73,7 @@ QgsDateRange.__repr__ = _date_range_repr QgsProperty.__bool__ = lambda self: self.propertyType() != Qgis.PropertyType.Invalid QgsOptionalExpression.__bool__ = lambda self: self.enabled() - +QgsUnsetAttributeValue.__hash__ = lambda self: 2178310 # add some __repr__ methods to processing classes def _processing_source_repr(self):