Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit c929b9e

Browse files
committed
CU-86995mmb6: Remove unncessary type ignore
1 parent eb69a46 commit c929b9e

File tree

1 file changed

+1
-1
lines changed
  • medcat/utils/relation_extraction/bert

1 file changed

+1
-1
lines changed

medcat/utils/relation_extraction/bert/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, pretrained_model_name_or_path: str, relcat_config: ConfigRelC
4141
self.model_config = model_config
4242
self.pretrained_model_name_or_path: str = pretrained_model_name_or_path
4343

44-
self.hf_model: Union[BertModel, PreTrainedModel] = BertModel(model_config.hf_model_config) # type: ignore
44+
self.hf_model: Union[BertModel, PreTrainedModel] = BertModel(model_config.hf_model_config)
4545

4646
for param in self.hf_model.parameters(): # type: ignore
4747
if self.relcat_config.model.freeze_layers:

0 commit comments

Comments
 (0)