I’d like to report a false positive for the Python language about an unused variable error. I can easily reproduce it - please have a look below:
def example() -> None: try: pass except ValueError as ex: raise RuntimeError() from ex except Exception as ex: raise RuntimeError() from ex
the ‘ex’ variable at line 6 is used at line 7. But after analysis I get the error:
‘Unused variable found PYL-W0612’ pointing at line 6.