File: err_171.py

package info (click to toggle)
python-refurb 1.27.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,700 kB
  • sloc: python: 9,468; makefile: 40; sh: 6
file content (12 lines) | stat: -rw-r--r-- 189 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# these should match

_ = 1 in (1,)
_ = 1 in [1]  # noqa: FURB109
_ = 1 not in (1,)
_ = 1 not in [1]  # noqa: FURB109


# these should not

_ = 1 in (1, 2)
_ = 1 in [1, 2]  # noqa: FURB109