Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

used_before_assignment_488.py 251B

123456789
  1. # pylint: disable=missing-docstring
  2. def func():
  3. """Test that a variable defined in a finally clause does not trigger a false positive"""
  4. try:
  5. variable = 1
  6. yield variable
  7. finally:
  8. variable = 2
  9. yield variable