Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect annotation openpyxl.worksheet.worksheet.Worksheet.cell #11898

Closed
Shinchesco opened this issue May 11, 2024 · 1 comment
Closed

Incorrect annotation openpyxl.worksheet.worksheet.Worksheet.cell #11898

Shinchesco opened this issue May 11, 2024 · 1 comment

Comments

@Shinchesco
Copy link

Shinchesco commented May 11, 2024

stubs/openpyxl/openpyxl/worksheet/worksheet.pyi
line 89
image

Hello. Worksheet.cell value can be string, integer, float, datetime, None.

@srittau
Copy link
Collaborator

srittau commented May 12, 2024

That's not how I read the code:https://foss.heptapod.net/openpyxl/openpyxl/-/blob/branch/3.1/openpyxl/worksheet/worksheet.py?ref_type=heads#L220

Also now how it seems to work in practice. You need to access Cell.value to access the actual cell value.

@srittau srittau closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants