Try changing the "Type Checking Mode" setting of Pylance to basic:
"python.analysis.typeCheckingMode": "basic"