@@ -225,7 +225,6 @@ def _maybe_create_specific_keep_instance_predicate(cfg: CfgNode) -> Optional[Ins
225225 return None
226226
227227 def combined_predicate (instance : Instance ) -> bool :
228- # pyrefly: ignore [not-callable]
229228 return any (p (instance ) for p in predicates )
230229
231230 return combined_predicate
@@ -236,7 +235,6 @@ def _get_train_keep_instance_predicate(cfg: CfgNode):
236235 combined_specific_keep_predicate = _maybe_create_specific_keep_instance_predicate (cfg )
237236
238237 def combined_general_specific_keep_predicate (instance : Instance ) -> bool :
239- # pyrefly: ignore [not-callable]
240238 return general_keep_predicate (instance ) and combined_specific_keep_predicate (instance )
241239
242240 if (general_keep_predicate is None ) and (combined_specific_keep_predicate is None ):
@@ -388,9 +386,7 @@ def combine_detection_dataset_dicts(
388386 """
389387 assert len (dataset_names )
390388 if proposal_files is None :
391- # pyrefly: ignore [bad-assignment]
392389 proposal_files = [None ] * len (dataset_names )
393- # pyrefly: ignore [bad-argument-type]
394390 assert len (dataset_names ) == len (proposal_files )
395391 # load datasets and metadata
396392 dataset_name_to_dicts = {}
@@ -407,7 +403,6 @@ def combine_detection_dataset_dicts(
407403 # map to contiguous category IDs
408404 _add_category_id_to_contiguous_id_maps_to_metadata (merged_categories )
409405 # load annotations and dataset metadata
410- # pyrefly: ignore [bad-argument-type]
411406 for dataset_name , proposal_file in zip (dataset_names , proposal_files ):
412407 dataset_dicts = dataset_name_to_dicts [dataset_name ]
413408 assert len (dataset_dicts ), f"Dataset '{ dataset_name } ' is empty!"
@@ -552,7 +547,6 @@ def build_bootstrap_dataset(dataset_name: str, cfg: CfgNode) -> Sequence[torch.T
552547 dataset = factory (meta , cfg )
553548 if dataset is None :
554549 logger .warning (f"Failed to create dataset { dataset_name } of type { meta .dataset_type } " )
555- # pyrefly: ignore [bad-return]
556550 return dataset
557551
558552
@@ -741,5 +735,4 @@ def register(self, dataset_type: DatasetType, factory: Callable[[Metadata, CfgNo
741735
742736
743737BootstrapDatasetFactoryCatalog = _BootstrapDatasetFactoryCatalog ()
744- # pyrefly: ignore [bad-argument-type]
745738BootstrapDatasetFactoryCatalog .register (DatasetType .VIDEO_LIST , build_video_list_dataset )
0 commit comments