diff --git a/src/fake_bpy_module/analyzer.py b/src/fake_bpy_module/analyzer.py index 9a578290..03be0c15 100644 --- a/src/fake_bpy_module/analyzer.py +++ b/src/fake_bpy_module/analyzer.py @@ -3,6 +3,7 @@ import json import copy +from . import support from .common import ( BuiltinDataType, CustomDataType, @@ -1142,7 +1143,9 @@ def _analyze_by_file(self, filename: str) -> 'SectionInfo': return section_none_removed def analyze(self, filenames: List[str]) -> 'AnalysisResult': - # TODO: Add assertion. + assert self.target in support.SUPPORTED_TARGET + assert (self.target_version in support.SUPPORTED_BLENDER_VERSION or + self.target_version in support.SUPPORTED_UPBGE_VERSION) result = AnalysisResult() for f in filenames: