partizan · @partizan
159 followers · 13263 posts · Server mstdn.social

@ambv so, what do you think about this problem?

It also behaves the same way in mypy. But here bug is not closed, and i'm hoping it can be fixed.

github.com/python/mypy/issues/

#pyright #mypy #pythontyping #Python

Last updated 1 year ago

пан Партизан · @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

kotatsuyaki · @kotatsuyaki
11 followers · 117 posts · Server fosstodon.org

It turned out that Pyright, an LSP server implementation for Python, has components in both Python *and TypeScript*. On the first launch, the Python code will try to install npm packages, which of course fails on corporational workstations without an Internet connection.

Guess I'll just code using plain Emacs without LSP then.

#python #pyright #lsp

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

Brad Larsen · @bradlarsen
44 followers · 43 posts · Server infosec.exchange

Type annotations in code help dramatically both to avoid silly bugs and to navigate larger codebases and APIs.

I use on my Python projects, setting it up as a build-breaking step in CI.

You need to pin the version of mypy that you use to make this setup feasible. Otherwise, updates to mypy can break your project. (Type checking Python code is not well-defined, and always a moving target.)

I also set up mypy to run in my code editor.

I have also had good success finding bugs with (github.com/microsoft/pyright) that mypy missed. But I've only been running that manually, not with CI or editor integration.

#python #mypy #pyright

Last updated 2 years ago

· @dogweather
18 followers · 70 posts · Server fosstodon.org

1/2: I'm brainstorming about implementing the architecturally for tool configuration & output modification. Two tools I use on a daily basis ( and ) have closed-won't-accept-PRs Issues for improvements that I care about. They're both rejected for the same reason: the tool works fine for the author, and the author doesn't see enough support behind the change to merit accepting a PR for the feature.

#openclosedprinciple #ruby #rspec #python #pyright

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