mirror of https://github.com/zulip/zulip.git
ruff: Fix E721 Use `is` and `is not` for type comparisons.
This is a preview rule, not yet enabled by default. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
0e71f52e86
commit
dbb20d636d
|
@ -551,7 +551,7 @@ do not match the types declared in the implementation of {function.__name__}.\n"
|
||||||
# the respective sets so that they can be dealt
|
# the respective sets so that they can be dealt
|
||||||
# with later. In either case remove the variable
|
# with later. In either case remove the variable
|
||||||
# from `json_params`.
|
# from `json_params`.
|
||||||
if vtype == str:
|
if vtype is str:
|
||||||
json_params.pop(vname, None)
|
json_params.pop(vname, None)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue