-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG] rich.inspect on a module: AttributeError: Unknown C global variable '__class__' #1838
Comments
Tangentially related: #1659 |
This doesn't look like a problem with Rich per se, in that That said, Rich could probably work around that issue. I'll look in to it. |
Did I solve your problem? Why not buy the devs a coffee to say thanks? |
Hey @pbsds - we've merged a workaround for this that will be in the next release |
11.1.0 - 2022-01-28 Added Add Syntax.guess_lexer, add support for more lexers (e.g. Django templates etc.) Textualize/rich#1869 Add lexer parameter to Syntax.from_path to allow for overrides Textualize/rich#1873 Fixed Workaround for edge case of object from Faiss with no __class__ Textualize/rich#1838 Ensure Syntax always justifies left Textualize/rich#1872 Handle classes in inspect when methods=True Textualize/rich#1874
Describe the bug
Trying to use
rich.inspect
on the module Faiss, (built by these guys) raises anAttributeError
exception.repro:
pip install --user faiss-cpu rich python -c 'import rich, faiss; rich.inspect(faiss)'
output:
Click to expand
Platform
Click to expand
Linux - Manjaro GNOME, using lxterminal
The text was updated successfully, but these errors were encountered: