mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
partial: Replace returns plugin with an annotation.
The returns plugin hasn’t been updated for mypy ≥ 1.6. This annotation is more limited in that it only supports a fixed number of positional arguments and no keyword arguments, but is good enough for our purposes. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
87f228fcb0
commit
d32d4434dd
@@ -318,7 +318,7 @@ rules:
|
||||
|
||||
- id: functools-partial
|
||||
pattern: functools.partial
|
||||
message: "Replace functools.partial with returns.curry.partial for type safety"
|
||||
message: "Replace functools.partial with zerver.lib.partial.partial for type safety"
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
|
||||
|
Reference in New Issue
Block a user