Clean up false positive Pylance errors
This commit is contained in:
parent
8f67883be1
commit
9284162682
@ -8,11 +8,13 @@ Author: Claude
|
||||
Date: 2025-10-22
|
||||
"""
|
||||
|
||||
# pyright: reportAssignmentType=false, reportArgumentType=false, reportAttributeAccessIssue=false
|
||||
# Note: SQLAlchemy Column descriptors cause false positives in Pylance/Pyright
|
||||
|
||||
import logging
|
||||
from typing import Optional, List, Dict
|
||||
from uuid import UUID
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.orm import joinedload
|
||||
|
||||
from app.database.session import AsyncSessionLocal
|
||||
from app.models.db_models import Game, Play, Lineup, GameSession, RosterLink
|
||||
|
||||
21
backend/pyrightconfig.json
Normal file
21
backend/pyrightconfig.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"include": [
|
||||
"app"
|
||||
],
|
||||
"exclude": [
|
||||
"**/__pycache__",
|
||||
"**/node_modules",
|
||||
"venv",
|
||||
".venv"
|
||||
],
|
||||
"reportGeneralTypeIssues": "none",
|
||||
"reportOptionalMemberAccess": "warning",
|
||||
"reportPrivateImportUsage": false,
|
||||
"reportIncompatibleMethodOverride": "warning",
|
||||
"reportIncompatibleVariableOverride": "none",
|
||||
"reportAssignmentType": "none",
|
||||
"reportArgumentType": "none",
|
||||
"typeCheckingMode": "basic",
|
||||
"pythonVersion": "3.13",
|
||||
"pythonPlatform": "Linux"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user