From 1328a2bb4b617dda68555d3ccb85e4ccbecd7227 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 7 Feb 2025 14:20:05 +1000 Subject: [PATCH] Add Python hash for QgsUnsetAttributeValue --- python/PyQt6/core/__init__.py.in | 2 +- python/core/__init__.py.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):