mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-10-04 16:56:55 +02:00
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>
19 lines
405 B
Python
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
|