Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/openpyxl/styles/protection.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

9 statements  

1# Copyright (c) 2010-2024 openpyxl 

2 

3from openpyxl.descriptors import Bool 

4from openpyxl.descriptors.serialisable import Serialisable 

5 

6 

7class Protection(Serialisable): 

8 """Protection options for use in styles.""" 

9 

10 tagname = "protection" 

11 

12 locked = Bool() 

13 hidden = Bool() 

14 

15 def __init__(self, locked=True, hidden=False): 

16 self.locked = locked 

17 self.hidden = hidden