Skip to content

Commit

Permalink
fixed redundant casts after streamlit upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
RichJackson authored and paluchasz committed Sep 10, 2024
1 parent 2d26ac1 commit ba7b52f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions kazu/krt/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ def _display_case_sensitivity_selector(
index = options.index(default_syn.case_sensitive)
else:
index = 0
return cast(
bool, row[row_index].radio("case sensitive", options=options, index=index, key=key)
)
return row[row_index].radio("case sensitive", options=options, index=index, key=key)

@staticmethod
def _display_confidence_selector(
Expand All @@ -165,10 +163,7 @@ def _display_confidence_selector(
index = options.index(default_syn.mention_confidence)
else:
index = 0
return cast(
MentionConfidence,
row[row_index].radio("confidence", options=options, index=index, key=key),
)
return row[row_index].radio("confidence", options=options, index=index, key=key)

@staticmethod
def display_case_sensitivity_and_confidence_selector(
Expand Down

0 comments on commit ba7b52f

Please sign in to comment.