Python: add type hinting to python code.

Types are checked using mypy.

Fixes #10394.
This commit is contained in:
Kristian Bendiksen
2023-07-12 11:42:17 +02:00
parent b1157436fe
commit 7aabe8c4a8
31 changed files with 522 additions and 292 deletions

View File

@@ -24,6 +24,7 @@
#include "RimColorLegendItem.h"
#include "cafPdmFieldReorderCapability.h"
#include "cafPdmObjectScriptingCapability.h"
#include <algorithm>
@@ -34,7 +35,7 @@ CAF_PDM_SOURCE_INIT( RimColorLegend, "ColorLegend" );
//--------------------------------------------------------------------------------------------------
RimColorLegend::RimColorLegend()
{
CAF_PDM_InitObject( "ColorLegend", ":/Legend.png" );
CAF_PDM_InitScriptableObject( "ColorLegend", ":/Legend.png" );
CAF_PDM_InitField( &m_colorLegendName, "ColorLegendName", QString( "" ), "Color Legend Name" );