ruff: Enable B008 function-call-in-default-argument.

https://docs.astral.sh/ruff/rules/function-call-in-default-argument/

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-10 16:51:07 -08:00
committed by Tim Abbott
parent b85dcd0175
commit b3f18b805d
6 changed files with 17 additions and 13 deletions

View File

@@ -69,7 +69,7 @@ class LinkifierDict(TypedDict):
id: int
class UnspecifiedValue:
class Unset:
"""In most API endpoints, we use a default value of `None"` to encode
parameters that the client did not pass, which is nicely Pythonic.
@@ -84,6 +84,9 @@ class UnspecifiedValue:
"""
UNSET = Unset()
class EditHistoryEvent(TypedDict, total=False):
"""
Database format for edit history events.