Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ impl Violation for MissingReturnTypeClassMethod {
}

/// ## What it does
/// Checks that function arguments are annotated with a more specific type than
/// `Any`.
/// Checks that function arguments and return values are annotated with a more
/// specific type than `Any`.
///
/// ## Why is this bad?
/// `Any` is a special type indicating an unconstrained type. When an
Expand All @@ -503,13 +503,13 @@ impl Violation for MissingReturnTypeClassMethod {
/// from typing import Any
///
///
/// def foo(x: Any): ...
/// def foo(x: Any) -> Any: ...
/// ```
///
/// Use instead:
///
/// ```python
/// def foo(x: int): ...
/// def foo(x: int) -> int: ...
/// ```
///
/// ## Known problems
Expand Down
Loading