Files
Jon Parise 916809ae1e runtime(python): highlight the 'lazy' soft keyword
Lazy imports (PEP 810, to be released in Python 3.15) introduces a
`lazy` soft keyword that's recognized when it precedes a `from` or
`import` keyword.

closes: #20342

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-07-26 15:20:02 +00:00

19 lines
405 B
Python

# Imports
import json
import os.path as p
from json import dumps, loads
from json import dumps as d
from os import *
from . import submodule
from ...pkg.sub import thing
# Lazy imports (PEP 810)
lazy import json
lazy from json import dumps
lazy from . import submodule
lazy from collections import OrderedDict as OD
# `lazy` is a soft keyword that's only recognized in imports
lazy = 1
def lazy(): pass