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.

trailing_comma_tuple.py 470B

1234567891011121314151617181920212223242526
  1. """Check trailing comma one element tuples."""
  2. # pylint: disable=bad-whitespace, missing-docstring
  3. AAA = 1, # [trailing-comma-tuple]
  4. BBB = "aaaa", # [trailing-comma-tuple]
  5. CCC="aaa", # [trailing-comma-tuple]
  6. FFF=['f'], # [trailing-comma-tuple]
  7. BBB = 1, 2
  8. CCC = (1, 2, 3)
  9. DDD = (
  10. 1, 2, 3,
  11. )
  12. EEE = (
  13. "aaa",
  14. )
  15. def test(*args, **kwargs):
  16. return args, kwargs
  17. test(widget=1, label='test')
  18. test(widget=1,
  19. label='test')
  20. test(widget=1, \
  21. label='test')