def check_qgis_patches(): """Check patch level to support: - https://github.com/qgis/QGIS/pull/41787 - https://github.com/qgis/QGIS/pull/41823 """ str_ver = str(Qgis.versionInt()) major = int(str_ver[0]) minor = int(str_ver[1:3]) patch = int(str_ver[3:]) return (minor == 16 and patch >= 7) or (minor == 18 and patch >= 1) or minor > 18