Suppress Type Hints (Experimental) (Section) — Skript

Addon: Skript · Category: Section · Since: 2.12, 2.17 (suppressing in a section)

Syntax

[un]suppress [local variable] type hints

Description

An effect to suppress local variable type hint errors for the syntax lines that follow this effect. NOTE: Suppressing type hints also prevents syntax from providing new type hints. For example, with type hints suppressed, 'set {_x} to true' would not provide 'boolean' as a type hint for '{_x}'

Examples

start suppressing local variable type hints
# potentially unsafe code goes here
stop suppressing local variable type hints

View source