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

pylint complains on import of "_" from ibis #10096

Open
rhstanton opened this issue Nov 23, 2024 · 0 comments
Open

pylint complains on import of "_" from ibis #10096

rhstanton opened this issue Nov 23, 2024 · 0 comments
Labels
Lib specific 💅 This affect the code from a particular library

Comments

@rhstanton
Copy link

Bug description

The code below runs fine, but pylint reports the error "No name '_' in module 'ibis' [no-name-in-module] against the line starting "from ibis...". 

-------------------

"""Test code"""

import ibis
from ibis import _
import pandas as pd

ibis.options.interactive = True

df = ibis.memtable(
    pd.DataFrame(
        [["a", 1, 2], ["b", 3, 4]],
        columns=["one", "two", "three"],
        index=[5, 6],
    )
)

df.select(_.one, _.two)

Configuration

Command used

pylint ibis_test.py

Pylint output

************* Module ibis_test
ibis_test.py:4:0: E0611: No name '_' in module 'ibis' (no-name-in-module)

Expected behavior

This is valid code, so I'd expect no error

Pylint version

pylint 3.2.7
astroid 3.2.4
Python 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ]

OS / Environment

macOS 15.1.1 running on an Apple chip. Using Anaconda Python.

Additional dependencies

@rhstanton rhstanton added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Nov 23, 2024
@zenlyj zenlyj added Lib specific 💅 This affect the code from a particular library and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lib specific 💅 This affect the code from a particular library
Projects
None yet
Development

No branches or pull requests

2 participants