hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright (c) 2010-2024 openpyxl
 
from openpyxl.descriptors import Bool
from openpyxl.descriptors.serialisable import Serialisable
 
 
class Protection(Serialisable):
    """Protection options for use in styles."""
 
    tagname = "protection"
 
    locked = Bool()
    hidden = Bool()
 
    def __init__(self, locked=True, hidden=False):
        self.locked = locked
        self.hidden = hidden