summaryrefslogtreecommitdiff
path: root/build-aux/mypy-stubs/xlrd/__init__.pyi
blob: fed4cd43bf32c876c9e1bb826d7939c7a92e8ac3 (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
# build-aux/mypy-stubs/xlrd/__init__.pyi - Type stubs for xlrd
#
# Copyright (C) 2025  Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later

import collections.abc
import typing

import xlrd.book
from xlrd.info import __VERSION__ as __VERSION__
from xlrd.info import __version__ as __version__

FILE_FORMAT_DESCRIPTIONS: dict[str | None, str]

def inspect_format(
    path: str | None = None, content: bytes | None = None
) -> str | None: ...
def open_workbook(
    filename: str | None = None,
    logfile: typing.TextIO = ...,
    verbosity: int = 0,
    use_mmap: bool = True,
    file_contents: collections.abc.Buffer | None = None,
    encoding_override: str | None = None,
    formatting_info: bool = False,
    on_demand: bool = False,
    ragged_rows: bool = False,
    ignore_workbook_corruption: bool = False,
) -> xlrd.book.Book: ...
def dump(
    filename: str, outfile: typing.TextIO = ..., unnumbered: bool = False
) -> None: ...
def count_records(filename: str, outfile: typing.TextIO = ...) -> None: ...