File: err_169.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 (13 lines) | stat: -rw-r--r-- 230 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# these should match

_ = type(123) is type(None)
_ = type(123) == type(None)
_ = type(123) is not type(None)
_ = type(123) != type(None)


# these should not

_ = type(123) is type(456)
_ = type(123) is int
_ = int is type(None)