BSK-W0014 warning

Explicit Any annotation

Emitted as a Warning when a function parameter or return annotation is written as Any (from typing). Any silences all type checking for the annotated value and should be used only when intentional.

This is an opinionated strictness nudge, not a type-system requirement: the typing spec treats Any as a fully valid type. It is therefore a distinct (user-suppressible) code from the genuine return-type-mismatch error (BSK-E0011); the two used to share a code, so a user could not silence the style nudge while keeping the real type check. W0014 itself is never disabled for PEP conformance — like every rule it runs fully enabled during scoring; there is no "spec-conformance mode" that turns it off. See CHKARCH-CONFORMANCE-MODE.

from typing import Any

def greet(name: Any) -> str: ...  # W0014 — parameter `name` is annotated Any
def parse(text: str) -> Any: ...  # W0014 — return annotation is Any

def greet(name: str) -> str: ...  # NO warning — concrete types

Real basilisk check output

What you see when BSK-W0014 fires on a minimal example:

basilisk check output reporting BSK-W0014 — Explicit `Any` annotation

How to handle it

Every rule is on by default — strict is the default, not a cage. You can dial BSK-W0014 down per-file or per-path from your editor or pyproject.toml, or fix the code so it type-checks. See the Warnings rules and the complete diagnostic reference.

Canonical URL: https://www.basilisk-python.dev/errors/BSK-W0014