mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
a001b03854
Also, update to latest upstream version. Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
52 lines
901 B
Python
52 lines
901 B
Python
#: E721
|
|
if type(res) == type(42):
|
|
pass
|
|
#: E721
|
|
if type(res) != type(""):
|
|
pass
|
|
#: E721
|
|
import types
|
|
|
|
if res == types.IntType:
|
|
pass
|
|
#: E721
|
|
import types
|
|
|
|
if type(res) is not types.ListType:
|
|
pass
|
|
#: E721
|
|
assert type(res) == type(False) or type(res) == type(None)
|
|
#: E721
|
|
assert type(res) == type([])
|
|
#: E721
|
|
assert type(res) == type(())
|
|
#: E721
|
|
assert type(res) == type((0,))
|
|
#: E721
|
|
assert type(res) == type((0))
|
|
#: E721
|
|
assert type(res) != type((1, ))
|
|
#: E721
|
|
assert type(res) is type((1, ))
|
|
#: E721
|
|
assert type(res) is not type((1, ))
|
|
#: E211 E721
|
|
assert type(res) == type ([2, ])
|
|
#: E201 E201 E202 E721
|
|
assert type(res) == type( ( ) )
|
|
#: E201 E202 E721
|
|
assert type(res) == type( (0, ) )
|
|
#:
|
|
|
|
#: Okay
|
|
import types
|
|
|
|
if isinstance(res, int):
|
|
pass
|
|
if isinstance(res, str):
|
|
pass
|
|
if isinstance(res, types.MethodType):
|
|
pass
|
|
if type(a) != type(b) or type(a) == type(ccc):
|
|
pass
|