@@ -310,7 +310,7 @@ def widgets():
310
310
# did not explicitly try to use this attribute, we do not want to throw a deprecation warning.
311
311
# So we check if the thing calling this static property is one of the known initialization functions in traitlets.
312
312
frame = _get_frame (2 )
313
- if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' ))):
313
+ if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' , 'setup_class' ))):
314
314
deprecation ("Widget.widgets is deprecated." )
315
315
return _instances
316
316
@@ -320,7 +320,7 @@ def _active_widgets():
320
320
# did not explicitly try to use this attribute, we do not want to throw a deprecation warning.
321
321
# So we check if the thing calling this static property is one of the known initialization functions in traitlets.
322
322
frame = _get_frame (2 )
323
- if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' ))):
323
+ if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' , 'setup_class' ))):
324
324
deprecation ("Widget._active_widgets is deprecated." )
325
325
return _instances
326
326
@@ -330,7 +330,7 @@ def _widget_types():
330
330
# did not explicitly try to use this attribute, we do not want to throw a deprecation warning.
331
331
# So we check if the thing calling this static property is one of the known initialization functions in traitlets.
332
332
frame = _get_frame (2 )
333
- if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' ))):
333
+ if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' , 'setup_class' ))):
334
334
deprecation ("Widget._widget_types is deprecated." )
335
335
return _registry
336
336
@@ -340,7 +340,7 @@ def widget_types():
340
340
# did not explicitly try to use this attribute, we do not want to throw a deprecation warning.
341
341
# So we check if the thing calling this static property is one of the known initialization functions in traitlets.
342
342
frame = _get_frame (2 )
343
- if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' ))):
343
+ if not (frame .f_code .co_filename == TRAITLETS_FILE and (frame .f_code .co_name in ('getmembers' , 'setup_instance' , 'setup_class' ))):
344
344
deprecation ("Widget.widget_types is deprecated." )
345
345
return _registry
346
346
0 commit comments