3 ms·
How will lazy imports interact with PEP 8 which recommends grouping imports in order: 1. Standard library imports. 2. Related third party imports. 3. Local a
by divbzero 11mo ago
How will lazy imports interact with PEP 8 which recommends grouping imports in order:
1. Standard library imports.
2. Related third party imports.
3. Local application/library specific imports.
https://peps.python.org/pep-0008/#imports https://peps.python.org/pep-0008/#imports
Based on the examples in PEP 810, I suppose each group of regular imports can be followed by a group of lazy imports?
import os
import sys
lazy import json
import fastapi
lazy import numpy
import myapi
import mymodels
lazy import myutils
...