Skip to content

Literal "calamine" missing from ExcelFile engine attribute #1061

Closed
@sanzoghenzo

Description

@sanzoghenzo

Describe the bug

#898 missed the engine attribute of the ExcelFile class.

To Reproduce

import pandas as pd

with pd.ExcelFile("path.xlsx", engine="calamine") as xlsx:
   pass

using mypy I got

error: Argument "engine" to "ExcelFile" has incompatible type "Literal['calamine']"; expected "Literal['xlrd', 'openpyxl', 'odf', 'pyxlsb'] | None"  [arg-type]

Please complete the following information:
I don't think it matters, but:

  • OS: Windows 10 22H2
  • python v3.10
  • mypy v1.13.0
  • pandas-stubs v2.2.3.241126

Metadata

Metadata

Assignees

No one assigned

    Labels

    IO Excelread_excel, to_excel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions