Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ruff: Fix E721 Use `is` and `is not` for type comparisons.

Anders Kaseorgdbb20d636dbb
diff --git a/zerver/tests/test_openapi.py b/zerver/tests/test_openapi.py
index 8e3238dd060..d15d3eb97b8 100644
--- a/zerver/tests/test_openapi.py
+++ b/zerver/tests/test_openapi.py
@@ -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: