summaryrefslogtreecommitdiff
path: root/build-aux/mypy-stubs/xlwt/Style.pyi
blob: b7bb0c31f40256ae4c83231248ab6e483b0ad353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# build-aux/mypy-stubs/xlwt/Style.pyi - Type stubs for xlwt
#
# Copyright (C) 2025  Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later

import xlwt.Formatting

class XFStyle:
    num_format_str: str
    font: xlwt.Formatting.Font
    alignment: xlwt.Formatting.Alignment
    borders: xlwt.Formatting.Borders
    pattern: xlwt.Formatting.Pattern
    protection: xlwt.Formatting.Protection

default_style: XFStyle = ...

pattern_map: dict[str, xlwt.Formatting._Pattern]
colour_map: dict[str, xlwt.Formatting._Pattern]

def easyxf(
    strg_to_parse: str = "",
    num_format_str: str | None = None,
    field_sep: str = ",",
    line_sep: str = ";",
    intro_sep: str = ":",
    esc_char: str = "\\",
    debug: bool = False,
) -> XFStyle: ...
def easyfont(
    strg_to_parse: str = "",
    field_sep: str = ",",
    esc_char: str = "\\",
    debug: bool = False,
) -> xlwt.Formatting.Font: ...
def add_palette_colour(
    colour_str: str, colour_index: xlwt.Formatting._UserColourIndex
) -> None: ...