From 9d74093a0b0d7f825e026c8a20589861fc095994 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 17 Apr 2023 15:55:01 +0200 Subject: [PATCH] fix import of warnings.warn never part of the traitlets API --- notebook/traittypes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebook/traittypes.py b/notebook/traittypes.py index 53bb125369..dcced117b1 100644 --- a/notebook/traittypes.py +++ b/notebook/traittypes.py @@ -1,5 +1,6 @@ import inspect -from traitlets import ClassBasedTraitType, Undefined, warn +from warnings import warn +from traitlets import ClassBasedTraitType, Undefined # Traitlet's 5.x includes a set of utilities for building # description strings for objects. Traitlets 5.x does not