mirror of https://github.com/zulip/zulip.git
ruff: Fix B006 Do not use mutable data structures for argument defaults.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
7ccc24d9fe
commit
e3d57c9586
|
@ -116,7 +116,6 @@ ignore = [
|
||||||
"ANN101", # Missing type annotation for `self` in method
|
"ANN101", # Missing type annotation for `self` in method
|
||||||
"ANN102", # Missing type annotation for `cls` in classmethod
|
"ANN102", # Missing type annotation for `cls` in classmethod
|
||||||
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
|
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
|
||||||
"B006", # Do not use mutable data structures for argument defaults
|
|
||||||
"B007", # Loop control variable not used within the loop body
|
"B007", # Loop control variable not used within the loop body
|
||||||
"B008", # Do not perform function calls in argument defaults.
|
"B008", # Do not perform function calls in argument defaults.
|
||||||
"B023", # Function definition does not bind loop variable
|
"B023", # Function definition does not bind loop variable
|
||||||
|
|
|
@ -462,7 +462,7 @@ Output:
|
||||||
def client_post(
|
def client_post(
|
||||||
self,
|
self,
|
||||||
url: str,
|
url: str,
|
||||||
info: Union[str, bytes, Dict[str, Any]] = {},
|
info: Union[str, bytes, Mapping[str, Any]] = {},
|
||||||
skip_user_agent: bool = False,
|
skip_user_agent: bool = False,
|
||||||
follow: bool = False,
|
follow: bool = False,
|
||||||
secure: bool = False,
|
secure: bool = False,
|
||||||
|
@ -875,7 +875,7 @@ Output:
|
||||||
self,
|
self,
|
||||||
identifier: str,
|
identifier: str,
|
||||||
url: str,
|
url: str,
|
||||||
info: Union[str, bytes, Dict[str, Any]] = {},
|
info: Union[str, bytes, Mapping[str, Any]] = {},
|
||||||
**extra: str,
|
**extra: str,
|
||||||
) -> "TestHttpResponse":
|
) -> "TestHttpResponse":
|
||||||
extra["HTTP_AUTHORIZATION"] = self.encode_uuid(identifier)
|
extra["HTTP_AUTHORIZATION"] = self.encode_uuid(identifier)
|
||||||
|
@ -907,7 +907,7 @@ Output:
|
||||||
self,
|
self,
|
||||||
user: UserProfile,
|
user: UserProfile,
|
||||||
url: str,
|
url: str,
|
||||||
info: Union[str, bytes, Dict[str, Any]] = {},
|
info: Union[str, bytes, Mapping[str, Any]] = {},
|
||||||
intentionally_undocumented: bool = False,
|
intentionally_undocumented: bool = False,
|
||||||
**extra: str,
|
**extra: str,
|
||||||
) -> "TestHttpResponse":
|
) -> "TestHttpResponse":
|
||||||
|
|
Loading…
Reference in New Issue