@@ -140,21 +140,21 @@ def current_engine(self) -> Optional[str]:
140140 return self ._current_engine
141141
142142 @property
143- def is_ready (self ) -> bool :
143+ def is_ready (self ) -> any :
144144 """Return True when the process is ready."""
145145 return self ._state in (ProcessState .READY , ProcessState .IDLE )
146146
147147 @property
148- def is_compiling (self ) -> bool :
148+ def is_compiling (self ) -> any :
149149 """Return True when a compilation is currently running."""
150150 return self ._state == ProcessState .COMPILING
151151
152152 @property
153- def is_idle (self ) -> bool :
153+ def is_idle (self ) -> any :
154154 """Return True when the process is idle."""
155155 return self ._state == ProcessState .IDLE
156156
157- def set_workspace (self , workspace_dir : str ) -> bool :
157+ def set_workspace (self , workspace_dir : str ) -> any :
158158 """
159159 Set workspace directory.
160160
@@ -180,7 +180,7 @@ def set_workspace(self, workspace_dir: str) -> bool:
180180
181181 return True
182182
183- def set_file (self , file_path : str ) -> bool :
183+ def set_file (self , file_path : str ) -> any :
184184 """
185185 Set file to compile.
186186
@@ -218,7 +218,7 @@ def compile(
218218 engine_id : Optional [str ] = None ,
219219 file_path : Optional [str ] = None ,
220220 workspace_dir : Optional [str ] = None ,
221- ) -> bool :
221+ ) -> any :
222222 """
223223 Start a compilation.
224224
@@ -296,7 +296,7 @@ def compile(
296296
297297 return success
298298
299- def cancel (self ) -> bool :
299+ def cancel (self ) -> any :
300300 """
301301 Cancel current compilation.
302302
@@ -385,8 +385,8 @@ def compile_from_context(
385385 engine_id : str ,
386386 context : BuildContext ,
387387 engine_config : Optional [Dict [str , Any ]] = None ,
388- is_rebuild : bool = False ,
389- ) -> bool :
388+ is_rebuild : any = False ,
389+ ) -> any :
390390 """
391391 Start an async compilation from a :class:`BuildContext`.
392392
@@ -455,7 +455,7 @@ def get_exclusion_patterns(self) -> List[str]:
455455 pass
456456 return DEFAULT_EXCLUDE_PATTERNS
457457
458- def should_exclude (self , file_path : str ) -> bool :
458+ def should_exclude (self , file_path : str ) -> any :
459459 """
460460 Determine whether a file must be excluded from compilation.
461461
0 commit comments