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.

unused_variable.py 762B

12345678910111213141516171819202122232425262728293031
  1. # pylint: disable=missing-docstring, invalid-name, too-few-public-methods, no-self-use
  2. def test_regression_737():
  3. import xml # [unused-variable]
  4. def test_regression_923():
  5. import unittest.case # [unused-variable]
  6. import xml as sql # [unused-variable]
  7. def test_unused_with_prepended_underscore():
  8. _foo = 42
  9. _ = 24
  10. __a = 24
  11. dummy = 24
  12. _a_ = 42 # [unused-variable]
  13. __a__ = 24 # [unused-variable]
  14. __never_used = 42
  15. def test_local_field_prefixed_with_unused_or_ignored():
  16. flagged_local_field = 42 # [unused-variable]
  17. unused_local_field = 42
  18. ignored_local_field = 42
  19. class HasUnusedDunderClass(object):
  20. def test(self):
  21. __class__ = 42 # [unused-variable]
  22. def best(self):
  23. self.test()