提交 7d71505d authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Add a warning to the default CLinkerObject.c_code_cache_version

上级 2dc75912
import warnings
from abc import abstractmethod from abc import abstractmethod
from typing import Callable, Dict, List, Text, Tuple, Union from typing import Callable, Dict, List, Text, Tuple, Union
...@@ -162,6 +163,9 @@ class CLinkerObject: ...@@ -162,6 +163,9 @@ class CLinkerObject:
c_code_cache_version_apply() c_code_cache_version_apply()
""" """
warnings.warn(
f"{type(self)} specifies no C code cache version and will not be cached."
)
return () return ()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论