BSK-E0158 error

Inconsistent decorators across an overloaded method

The typing spec constrains how decorators may be spread across an @overload group and its implementation:

If any signature is @staticmethod / @classmethod, all signatures and the implementation must carry the same decorator. @final and @override apply to the implementation only (or, in a stub, the first overload). Placing either on an @overload signature when an implementation is present is an error.

These checks run only on groups that have a concrete implementation, so stub declarations (which legitimately place @final/@override on the first overload) are never flagged.

How to handle it

Every rule is on by default — strict is the default, not a cage. You can dial BSK-E0158 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/BSK-E0158