We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TYPE_CHECKING
1 parent e839380 commit c96221cCopy full SHA for c96221c
src/powerapi/handler/handler.py
@@ -27,8 +27,14 @@
27
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30
+from __future__ import annotations
31
+
32
+from typing import TYPE_CHECKING
33
34
from powerapi.exception import PowerAPIException, UnknownMessageTypeException
-from powerapi.actor.message import Message
35
36
+if TYPE_CHECKING:
37
+ from powerapi.actor.message import Message
38
39
40
class HandlerException(PowerAPIException):
0 commit comments