Alguém conhece um bom tutorial de #RAG que não use o #ChromaDB como banco vetorial? O desgraçado não está funcionando no #Python 3.10 ou maior graças ao #Pylance
Stumbled across this issue on #GitHub after experiencing the same thing myself. Found the thread pretty hilarious. I wonder what you guys think?
https://github.com/microsoft/pylance-release/issues/6182#issuecomment-2249085178
#vscode #python #pylance #linting #poll
It's a feature
60%
It's a bug
40%
Poll ended at .
False "Code is unreachable" warning when using `not isinstance()` · Issue #6182 · microsoft/pylance-release

When using not isinstance() to check if a variable is of the required type/s, Pylance incorrectly reports the indented code block as unreachable. Environment data Language Server version: 2024.7.1 ...

GitHub

Der Python-Language-Server #Pylance, eine von #Microsoft entwickelte Extension für Visual Studio Code, enthält eine waschechte #ReDoS-Attacke (regular expression denial of service).

Kern des Angriffs ist ein regulärer Ausdruck (siehe Screenshot), der offenbar dazu gedacht ist, Debugger-Prozesse in eine Quasi-Endlos-Busy-Loop-Falle mit 100% CPU-Auslastung laufen zu lassen.

Zwar lässt sich die Attacke mit minimalem Aufwand unschädlich machen, aber: heilige Scheiße! Solche Aktionen sind eines billionenschweren Tech-Konzerns mehr als unwürdig.

Pylance and vscode now has experimental support for restructured text docstrings on hover. Will improve the discoverability across the #python ecosystem #vscode #pylance #developer

Anyone know how to make #vscode and #python ( #pylance) actually be aggressive about respecting "extraPaths" settings? If I open files in the folder I've given as an absolute path, they autocomplete, but if I reference those modules from my own project, the classes are invisible.

I hate having squiggles because they block discoverability

If #pylance includes a wrong typing for a function, where do I have to open the ticket? Pylance or the #typeshed project?

The definition from calendar.pyi is basically wrong as the function returns actually list[list[list[date]]].

```python
def yeardatescalendar(self, year: int, width: int = 3) -> list[list[int]]: ...
```

#python #typing

Do you use #codium #vscodium to write #python code? Which python related extensions do you use? I'm reluctant to use #vscode or #pylance so no much idea of the ecosystem, marketplace, etc. Any hint, doc, blog post that helps to get started would be much appreciated.

Thanks!!!

Anybody found a way to make the #Pylance type checker understand Click decorators?

#Mypy understands them just fine.

#Python #PyRight

Apparently, #pylance 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 #VSCode once the May Update has been installed.

#Python

https://devblogs.microsoft.com/python/python-in-visual-studio-code-may-2023-release/

Python in Visual Studio Code - May 2023 Release - Python

The May 2023 release of the Python and Jupyter extensions for Visual Studio Code are now available. In this release, Jupyter is no longer installed alongside the Python extension, microvenv support was added for the Create Environment command, new automatic conversion of f-strings, and code navigation on strings that contain module names. Keep reading to learn more!

Python

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