Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/nbformat/warnings.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

3 statements  

1""" 

2Warnings that can be emitted by nbformat. 

3""" 

4 

5from __future__ import annotations 

6 

7 

8class MissingIDFieldWarning(FutureWarning): 

9 """ 

10 

11 This warning is emitted in the validation step of nbformat as we used to 

12 mutate the structure which is cause signature issues. 

13 

14 This will be turned into an error at later point. 

15 

16 We subclass FutureWarning as we will change the behavior in the future. 

17 

18 """ 

19 

20 

21class DuplicateCellId(FutureWarning): 

22 """ 

23 

24 This warning is emitted in the validation step of nbformat as we used to 

25 mutate the structure which is cause signature issues. 

26 

27 This will be turned into an error at later point. 

28 

29 We subclass FutureWarning as we will change the behavior in the future. 

30 """