python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Python: "Tuple" is not defined warning
I'm writing a function that returns a tuple and using type annotations. To do so, I've written:
def foo(bar) -> Tuple[int, int]:
pass
This runs, but I've been getting a warning that says:
&qu...

glxiia
Votes: 0
Answers: 1
Python - "pyodbc" is not accessed Pylance
Im new to using python, and having some trouble using pyodbc to connect to MS SQL.
I've reinstalled almost everything except windows so far.
reinstalled a few times, both with pip/pip3. Even tried old...
Orly Oo
Votes: 0
Answers: 1
using iloc to query a pandas dataframe, why pylance is complaining slice is "slice" is incompatible with "int"?
I am using iloc to slice my dataframe as below:
df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
new_df = df.iloc[1:]
It is working fine but pylance in VsCode is complaining th...
Amin Ba
Votes: 0
Answers: 1
vscode pylance type checking does not recognize re imports
When turning on "python.analysis.typeCheckingMode": "strict" or "python.analysis.typeCheckingMode": "basic",
.py files containing imports of other modules do no...
Mat
Votes: 0
Answers: 1