Skip to content

Commit e44c707

Browse files
committed
makes isort ignore the meta registration's import sequence
Signed-off-by: ganyi <[email protected]>
1 parent 5e14cb1 commit e44c707

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vllm_ascend/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,12 @@ def enable_custom_op():
214214
if _CUSTOM_OP_ENABLED is not None:
215215
return _CUSTOM_OP_ENABLED
216216
try:
217+
# isort: off
217218
# register custom ops into torch_library here
219+
import vllm_ascend.vllm_ascend_C # type: ignore # noqa: F401
218220
# register the meta implementation for custom kernel if necessary
219221
import vllm_ascend.meta_registration # type: ignore # noqa: F401
220-
import vllm_ascend.vllm_ascend_C # type: ignore # noqa: F401
222+
# isort: on
221223
_CUSTOM_OP_ENABLED = True
222224
except ImportError:
223225
_CUSTOM_OP_ENABLED = False

0 commit comments

Comments
 (0)