From 8f9fddd5123a92fcdfbfd3035c81e66027352091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 13 Jul 2023 12:56:03 +0200 Subject: [PATCH] Add-on: silence mypy error Mypy doesn't know the `bl-rna` property exists. No functional changes. --- addon/flamenco/gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/flamenco/gui.py b/addon/flamenco/gui.py index fc913044..c234850f 100644 --- a/addon/flamenco/gui.py +++ b/addon/flamenco/gui.py @@ -144,7 +144,8 @@ class FLAMENCO_PT_job_submission(bpy.types.Panel): ) -> None: autoeval_enabled = job_types.setting_should_autoeval(propgroup, setting) if autoeval_enabled: - label = propgroup.bl_rna.properties[setting.key].name + # Mypy doesn't know the bl_rna attribute exists. + label = propgroup.bl_rna.properties[setting.key].name # type: ignore layout.prop( propgroup, job_types.setting_autoeval_propname(setting),