pylint
pylint copied to clipboard
Unreachable code in the next line when using `read_excel` function of `polars` module
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