Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
57 views

The binary_var_list method in the docplex.mp.model API has an incorrect type annotation for the name parameter. Current signature: def binary_var_list(self, keys, lb=None, ub=None, name: type[str] = ...
pipefish's user avatar
  • 1,036
0 votes
2 answers
53 views

When I attempt to import a module from a local package (from core import config), VSCode's syntax highlighting isn't working. When hovering over config, it shows "config: Any" (the editor ...
Иван Чернецов's user avatar
0 votes
1 answer
73 views

I am using vscode for Python dev. I have the Microsoft Extensions (Pylance, Python, Python Debugger, PythonEnviroments) installed and working. The issue is when I try to make a metaclass in vscode ...
Free Man's user avatar
0 votes
0 answers
71 views

Title pretty much says it all. Autocomplete works fine for variables I declare in the main script body, but when I instantiate an object of a class, autocomplete doesn't predict any of the class's ...
Snew Tres's user avatar
0 votes
1 answer
176 views

I have a Python Poetry project. Visual Studio Code features like auto-import and auto-complete do not work for the project dependency libraries. Pylance (the Python language server for Visual Studio ...
Mikko Ohtamaa's user avatar
1 vote
1 answer
73 views

So I'm working through tensorflow, I got into it recently, and I dont know the library well. I'd like to rely on suggestions on what to type, to be able to check what parameters are there to functions,...
Michal Horecki's user avatar
-1 votes
1 answer
742 views

Recently Pylance has started to add red underlines in my code. I've managed to fix most of it, but I have problems with Optional typing: def realms(testenv:str, active:bool=True) -> Optional[Dict]: ...
MortenB's user avatar
  • 3,747
1 vote
0 answers
81 views

Consider this Python class with docstring: class TestClass: ''' Summary line of docstring Additional lines of docstring. Attributes: attr1 (int): this is the desc of a public ...
Alberto Jiménez's user avatar
0 votes
0 answers
170 views

I'm encountering a Pylance(reportInvalidTypeForm) error when using torch.Tensor as a return type hint in my PyTorch nn.Module subclasses. This happens even though from future import annotations is the ...
STATTHINGY TRENTON's user avatar
1 vote
0 answers
219 views

With VSCode Pylance, many import suggestions are missing when working under these conditions: Package installed in editable mode I'm working in a separate directory Original package does not contain ...
conjuncts's user avatar
0 votes
0 answers
62 views

What configuration changes are needed in VSCode (or in my project layout) to make Pylance and Pylint recognize the installed cowsay package and its members? Is there a best practice for structuring ...
Melon's user avatar
  • 54
0 votes
0 answers
39 views

This is the problem in VSCode: import matplotlib.pyplot as plt # Import "matplotlib.pyplot" could not be resolved from sourcePylancereportMissingModuleSource from mpi4py import MPI # No ...
Abel Gutiérrez's user avatar
0 votes
1 answer
390 views

I discovered that Pylance was the source of my VSCode's autocomplete's slowness after following Visual Studio Code Intellisense is very slow - Is there anything I can do? and disabling all my ...
plutownium's user avatar
  • 2,229
0 votes
0 answers
37 views

In VS Code I have a little python (Python 3.11.9) module I'm building beside my main code. The module works fine and runs without issue. I've installed it in edit mode via pip install -e . Still ...
TWDickson's user avatar
0 votes
1 answer
307 views

I'm encountering a type checking error in VSCode with Pylance (pyright) when accessing serializer.validated_data["code"] in a Django project. The errors are: "__getitem__" method ...
Farhad's user avatar
  • 366
0 votes
0 answers
146 views

Actual behaviour: the docstring is missing… Expected behaviour: the parameter-specific docstring is shown (imagine this in my code instead, not just in the module itself as seen below) Pylance does ...
Adler's user avatar
  • 2,887
0 votes
1 answer
139 views

So I want to ignore the errors for my jupyter notebook code, since Im just using it to store code which I copy paste into my terminal. I tried to to edit the settings and even tried to change the ...
BlueSea's user avatar
2 votes
1 answer
211 views

I'm using VSCode and Pylance. Consider the following example of a variable defined and initialized in outer scope being reassigned in inner scope: number: int = 0 def change_number() -> None ...
Michelasso's user avatar
0 votes
0 answers
143 views

I'm using Visual Studio Code version 1.96.2 on macOS 14.4.1. This is the latest version of VSCode currently available. The extensions I have installed (and reinstalled) are: Pylance Microsoft's ...
rick's user avatar
  • 1
2 votes
1 answer
258 views

I have a model like this: class Test(models.Model): a = models.TextField(null=True, blank=True) b = models.TextField(null=True, blank=True) class Meta: constraints = [ ...
grandalph's user avatar
  • 105
1 vote
1 answer
131 views

Minor issue. Some days ago, docstrings would be formatted so that when I hover over them, "Args" (Google-style) and "Returns" would be in bold, as well as the names of the ...
zest16's user avatar
  • 679
0 votes
0 answers
47 views

I cannot for the life of me fathom why VS code is not displaying import suggestions in a popup or auto-importing missing packages as it should be doing. VSCode version: 1.95.3 Pylance version: v2024....
Gilles Major's user avatar
1 vote
1 answer
420 views

I have a Python project in Ubuntu 24.04.1 LTS and I have a DevContainer in VSC with Debian GNU/Linux 11, the problem is that Pylance is flagging import streamlit as st with Import "streamlit"...
HuLu ViCa's user avatar
  • 5,505
1 vote
3 answers
336 views

I am having trouble dealing with classes wherein I have classes whose attributes and methods I want to access in my API code, but not have those attributes and methods exposed to the user who is using ...
person17381's user avatar
0 votes
1 answer
92 views

I enhanced a class by adding some few methods from another class (Jira's class from atlassian-python package) My class is called JiraExtended. Original methods from the class display this way: The ...
Odyseus_v4's user avatar

1
2 3 4 5
11