directives_deprecated error

Use of deprecated class, function, or method

PEP 702 introduces @deprecated from typing / typing_extensions. Using a deprecated entity (calling, importing, accessing) should produce a diagnostic so that developers migrate away from the deprecated API.

from typing_extensions import deprecated

@deprecated("Use new_func instead")
def old_func() -> None: ...

old_func()  # directives_deprecated

How to handle it

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

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