Skip to content

Commit

Permalink
Added workaround for an error with annotations using old Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
joxeankoret committed Apr 9, 2024
1 parent 2c97b4f commit 04fb452
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ml/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
except ImportError:
from difflib import SequenceMatcher

from typing import List

#-------------------------------------------------------------------------------
try:
import numpy as np
Expand Down Expand Up @@ -113,7 +115,7 @@ def count_callers_callees(db_name : str, func_id : int):
return callers, callees

#-------------------------------------------------------------------------------
def compare_rows(row1 : list, row2 : list) -> list[float]:
def compare_rows(row1 : list, row2 : list) -> List[float]:
"""
Compare two function rows and calculate a similarity ratio for it.
"""
Expand Down

0 comments on commit 04fb452

Please sign in to comment.