Skip to content

Commit

Permalink
CU-8694pey4u: add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
tomolopolis committed May 30, 2024
1 parent f836f65 commit 661ab13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions medcat/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def load_model_pack(cls,
model_pack_path = cls.attempt_unpack(zip_path)

# Load the CDB
cdb = cls.load_cdb(model_pack_path)
cdb: CDB = cls.load_cdb(model_pack_path)

# load config
config_path = os.path.join(model_pack_path, "config.json")
Expand Down Expand Up @@ -419,7 +419,7 @@ def load_model_pack(cls,
# Find metacat models in the model_pack
meta_cats = []
if load_meta_models:
meta_cats = [mc[1] for mc in cls.load_meta_cats(model_pack_path)]
meta_cats: List[MetaCAT] = [mc[1] for mc in cls.load_meta_cats(model_pack_path)]

# Find Rel models in model_pack
rel_paths = [os.path.join(model_pack_path, path) for path in os.listdir(model_pack_path) if path.startswith('rel_')] if load_rel_models else []
Expand Down

0 comments on commit 661ab13

Please sign in to comment.