microsoft / python-type-stubs

A set of type stubs for popular Python packages. These are works in progress from the Microsoft Python team and others, with the intent that they are contributed to typeshed or to the associated packages once sufficiently complete.
MIT License
245 stars 93 forks source link

Cannot import sklearn.preprocessing.TargetEncoder #304

Open memeplex opened 7 months ago

memeplex commented 7 months ago

I reported https://github.com/microsoft/pylance-release/issues/5454 to pylance, but maybe it belongs here. I'm not sure whether the stubs here are distributed with pylance or not.

Notice that TargetEncoder is quite new, it was introduced in sklearn 1.3.

Avasam commented 7 months ago

@memeplex You are correct, the stubs found here are shipped with Pylance (but not pyright). Feel free to open a PR to add missing symbols that you need. (note, I am not a maintainer, but I have been moving a handful of stubs here over to typeshed)