пан Партизан · @partizan
156 followers · 13034 posts · Server mstdn.social

Is there a way to create type stub only for part of the library?

For example: I want to include types for a single object, but don't want to maintain full copy of the library.

github.com/carltongibson/djang

#mypy #pylance #pyright #pythontyping #Python

Last updated 1 year ago

пан Партизан · @partizan
59 followers · 12033 posts · Server mstdn.social

github.com/microsoft/pylance-r

What do you expect when renaming import?

I expect import to be renamed, not target class. Join the discussion.

#pylance #pyright #Python

Last updated 1 year ago

holger · @holgerjs
31 followers · 85 posts · Server hachyderm.io

Apparently, can now be configured to automatically create an f string when a { is added to a string.

Currently disabled by default; can be enabled at the "python.analysis.autoFormatStrings" setting in once the May Update has been installed.

devblogs.microsoft.com/python/

#pylance #vscode #python

Last updated 2 years ago

Linh Pham · @qlp
338 followers · 1170 posts · Server linh.social

I hope that I'm not the only one excited to see "Improved IntelliSense support for pytest" in the latest release notes for Visual Studio Code

#python #pytest #pylance #vscode #visualstudiocode

Last updated 2 years ago

Brett Cannon · @brettcannon
2133 followers · 557 posts · Server fosstodon.org

1.75 is out, and along with it some improvements to stuff!

code.visualstudio.com/updates/

The `Create Environment` command will now ask what requirements files and/or `pyproject.toml` optional dependencies you would like to see installed.

This release also sees having automatic indentation (if you want; controlled by a setting).

🤫 I hear if you use Pylance pre-release you can get fixture support for "Go to Definition" and completions

code.visualstudio.com/updates/

#vscode #python #pylance #pytest

Last updated 2 years ago

Rodion Borisov · @vintprox
24 followers · 281 posts · Server techhub.social

@clayton I remember interacting with Community Edition one year ago, and it wasn't bad! Language server is what interested me a lot (not without few shortcomings). Indexing is more transparent, good integration with linters and formatters.

Meanwhile, in I always feel like Python support remains deficient - virtual environments require more work to do than necessary, leaving you with the quirks of non-OSS language server as an added "bonus". Integrated .

#pycharm #vscode #pylance #jupyternotebook

Last updated 2 years ago

Jake Bailey · @jakebailey
189 followers · 81 posts · Server fosstodon.org

Obligatory . I'm not a hashtag guy but they make searching work (sorry).

Hi, I'm Jake, a senior software engineer at working on the team (doing cool stuff like github.com/microsoft/TypeScrip , build, perf stuff).

Previously, I worked on / for .

My favorite and most used language, shockingly, is Go ().

Though I'm on Windows for work / gaming, I've otherwise been running for well over a decade (love sway, i3 before that).

#introduction #microsoft #typescript #pylance #pyright #python #golang #archlinux

Last updated 2 years ago

Brian :fedora: :python: · @bpepple
225 followers · 1472 posts · Server fosstodon.org

Used 's language server today. And overall it was pretty nice. Especially like the type checking and import suggestions, which are a noticeable improvement to the old language server.

#vscode #pylance #python #microsoft

Last updated 4 years ago