Skip to content

Commit ba7b52f

Browse files
RichJacksonpaluchasz
authored andcommittedSep 10, 2024·
fixed redundant casts after streamlit upgrade
1 parent 2d26ac1 commit ba7b52f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎kazu/krt/components.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ def _display_case_sensitivity_selector(
139139
index = options.index(default_syn.case_sensitive)
140140
else:
141141
index = 0
142-
return cast(
143-
bool, row[row_index].radio("case sensitive", options=options, index=index, key=key)
144-
)
142+
return row[row_index].radio("case sensitive", options=options, index=index, key=key)
145143

146144
@staticmethod
147145
def _display_confidence_selector(
@@ -165,10 +163,7 @@ def _display_confidence_selector(
165163
index = options.index(default_syn.mention_confidence)
166164
else:
167165
index = 0
168-
return cast(
169-
MentionConfidence,
170-
row[row_index].radio("confidence", options=options, index=index, key=key),
171-
)
166+
return row[row_index].radio("confidence", options=options, index=index, key=key)
172167

173168
@staticmethod
174169
def display_case_sensitivity_and_confidence_selector(

0 commit comments

Comments
 (0)
Please sign in to comment.