@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.
#pyright #mypy #pythontyping #Python
#Python #PythonTyping #Pyright #Pylance #Mypy
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.
https://github.com/carltongibson/django-filter/pull/1585/files
#mypy #pylance #pyright #pythontyping #Python
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.
https://github.com/microsoft/pylance-release/discussions/4409
What do you expect when renaming import?
I expect import to be renamed, not target class. Join the discussion.
Type annotations in #Python code help dramatically both to avoid silly bugs and to navigate larger codebases and APIs.
I use #mypy 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 #pyright (https://github.com/microsoft/pyright) that mypy missed. But I've only been running that manually, not with CI or editor integration.
1/2: I'm brainstorming about implementing the #OpenClosedPrinciple architecturally for tool configuration & output modification. Two tools I use on a daily basis (#Ruby #Rspec and #Python #Pyright) 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
Obligatory #introduction. I'm not a hashtag guy but they make searching work (sorry).
Hi, I'm Jake, a senior software engineer at #microsoft working on the #typescript team (doing cool stuff like https://github.com/microsoft/TypeScript/pull/51387 , build, perf stuff).
Previously, I worked on #Pylance / #pyright for #python.
My favorite and most used language, shockingly, is Go (#golang).
Though I'm on Windows for work / gaming, I've otherwise been running #archlinux for well over a decade (love sway, i3 before that).
#introduction #microsoft #typescript #pylance #pyright #python #golang #archlinux