Why does pylance not provide help text for anything other than the Smartsheet class?

36 Views Asked by At

I have been coding with the smartsheet sdk, which has a bunch of modules and classes but pylance only has suggestions and defintions for the Smartsheet class, which the only real use I have for that is the inital api call of: smartsheet_client = smartsheet.Smartsheet(API_key)

All of the useful functions that do things with your client like smartsheet_client.Sheet.get_sheet(sheet_id), pylance has no idea what they are.

Other things like selenium, sqlalchemy, pandas, psycopg2, etc all have helpful information and colored formatting on their methods like you'd expect - it's just this that it's happening with. I've tried reinstalling, and at this point I think it's either a config issue I have no idea how to deal with, or the smartsheet package is structured in such a way that I just have to suck it up.

Here is the documentation of the package structure

1

There are 1 best solutions below

4
Kim Brandl On

I'm not very familiar with Pylance, but a brief internet search turned up this potentially helpful article about Pylance config settings in Visual Studio Code: https://code.visualstudio.com/docs/python/editing.

In particular, the Troubleshooting Intellisense section of that article may be helpful for resolving the problem you've described. Perhaps try editing the Code analysis settings as speicified in this documentation?

Troubleshooting causes & solutions