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:
Anders Kaseorg 2024-02-29 18:07:34 -08:00 committed by Tim Abbott
parent 0e71f52e86
commit dbb20d636d
1 changed files with 1 additions and 1 deletions

View File

@ -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
# with later. In either case remove the variable
# from `json_params`.
if vtype == str:
if vtype is str:
json_params.pop(vname, None)
continue
else: