About

Ways to Make Python Bearable

  1. Enable Pylance.

  2. Always use Hints.

  3. Rethink your decisions.

PyLance: VSCode
// Python
"[python]": {
    "editor.formatOnType": true
},
"python.defaultInterpreterPath": "C:\\Users\\caior\\AppData\\Local\\Programs\\Python\\Python313\\python.exe",
"python.terminal.shellIntegration.enabled": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.displayEnglishDiagnostics": true,
"python.analysis.generateWithTypeAnnotation": true,
"python.analysis.inlayHints.callArgumentNames": "all",
// Python: Security
"python.analysis.typeCheckingMode": "strict",
"python.analysis.languageServerMode": "full",
"python.analysis.logLevel": "Error",
"python.analysis.typeEvaluation.strictListInference": true,
"python.analysis.typeEvaluation.strictDictionaryInference": true,
"python.analysis.typeEvaluation.strictSetInference": true,
"python.analysis.typeEvaluation.enableReachabilityAnalysis": true,
"python.analysis.typeEvaluation.disableBytesTypePromotions": true,
"python.analysis.typeEvaluation.deprecateTypingAliases": true,
"python.analysis.autoFormatStrings": true,
"python.analysis.inlayHints.pytestParameters": true,
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.inlayHints.variableTypes": true,
"python.missingPackage.severity": "Error",