MartinThoma / openpyxl-stubs

Type stubs for openpyxl
MIT License
9 stars 9 forks source link

Issue on openpyxl.reader.excel #15

Closed eric-bonfadini closed 2 years ago

eric-bonfadini commented 3 years ago

I'm using

mypy==0.910
openpyxl==3.0.7
openpyxl-stubs==0.1.19

and I'm getting this error: error: Skipping analyzing "openpyxl.reader.excel": found module but no type hints or library stubs

when I call mypy on this sample file:

from openpyxl import Workbook
from openpyxl.cell import Cell
from openpyxl.styles import PatternFill, Border, Alignment, Font, Side
from openpyxl.styles.colors import Color
from openpyxl.reader.excel import load_workbook

Can it be because of a missing __init__.pyi inside reader module?

MartinThoma commented 2 years ago

@eric-bonfadini Thank you for the hint! Yes, the __init__.pyi was missing (also in another module). I've added it :-)