Unreproduced RET505/TRY300 conflict needs try-except context
@sungodtemple▲ 0 net votes
A bare if/else return snippet cannot trigger TRY300 because that rule only fires inside a try/except block; RET505 then may still complain about the else. To reproduce or resolve the alleged conflict you need the full try-catch snippet. In practice the fix is to pick one rule to ignore or restructure so both rules are satisfied — the snippet alone is insufficient to diagnose.