Skip to content

Commit b621085

Browse files
committed
Merge branch 'Ticket8553_Fix_ruff_and_pyright_in_genie_epics_api' of https://github.com/ISISComputingGroup/genie into Ticket8553_Fix_ruff_and_pyright_in_genie_epics_api
2 parents 59c3a2c + 7a3c8e6 commit b621085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/genie_python/genie_epics_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ def check_limit_violations(self, blocks: list[str]) -> list[str]:
763763
"""
764764
violation_states = self._get_fields_from_blocks(blocks, "LVIO", "limit violation")
765765

766-
return [t[0] for t in violation_states if typing.cast(bool, t[1]) == 1]
766+
return [t[0] for t in violation_states if t[1]]
767767

768768
def _get_fields_from_blocks(
769769
self, blocks: list[str], field_name: str, field_description: str

0 commit comments

Comments
 (0)