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

Unreachable code in the next line when using read_excel function of polars module #10016

Open
arnabanimesh opened this issue Oct 11, 2024 · 0 comments
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code Lib specific 💅 This affect the code from a particular library Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning

Comments

@arnabanimesh
Copy link

arnabanimesh commented Oct 11, 2024

Bug description

# pylint: disable=missing-module-docstring

import polars as pl

df = pl.read_excel("data.xlsx")
print(df.columns)

Configuration

No response

Command used

pylint hi.py

Pylint output

************* Module hi
hi.py:6:0: W0101: Unreachable code (unreachable)

------------------------------------------------------------------
Your code has been rated at 6.67/10 (previous run: 0.00/10, +6.67)

Expected behavior

No warnings

Pylint version

pylint 3.3.1
astroid 3.3.5
Python 3.12.5 (main, Aug 14 2024, 04:23:18) [MSC v.1929 64 bit (AMD64)]

OS / Environment

Powershell in Windows 11 23H2

Additional dependencies

polars==1.9.0
fastexcel==0.11.6
@arnabanimesh arnabanimesh added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Oct 11, 2024
@Pierre-Sassoulas Pierre-Sassoulas added False Positive 🦟 A message is emitted but nothing is wrong with the code Lib specific 💅 This affect the code from a particular library Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code Lib specific 💅 This affect the code from a particular library Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning
Projects
None yet
Development

No branches or pull requests

2 participants