backend: Remove metrics #1110
Annotations
10 errors and 11 warnings
check:
src/backend/main.py#L63
"secret_key" is not a known member of "None" (reportOptionalMemberAccess)
|
check:
src/backend/main.py#L64
Argument of type "str | None" cannot be assigned to parameter of type "str | Secret"
Type "str | None" cannot be assigned to type "str | Secret"
Type "None" cannot be assigned to type "str | Secret"
Type "None" cannot be assigned to type "str"
Type "None" cannot be assigned to type "Secret" (reportGeneralTypeIssues)
|
check:
src/backend/main.py#L68
Cannot access member "name" for type "APIRouter"
Member "name" is unknown (reportGeneralTypeIssues)
|
check:
src/backend/main.py#L84
Argument of type "(request: Request, exc: SCIMException) -> Coroutine[Any, Any, Response]" cannot be assigned to parameter "handler" of type "ExceptionHandler" in function "add_exception_handler"
Type "(request: Request, exc: SCIMException) -> Coroutine[Any, Any, Response]" cannot be assigned to type "ExceptionHandler"
Type "(request: Request, exc: SCIMException) -> Coroutine[Any, Any, Response]" cannot be assigned to type "HTTPExceptionHandler"
Parameter 2: type "Exception" cannot be assigned to type "SCIMException"
"Exception" is incompatible with "SCIMException"
Type "(request: Request, exc: SCIMException) -> Coroutine[Any, Any, Response]" cannot be assigned to type "WebSocketExceptionHandler"
Parameter 1: type "WebSocket" cannot be assigned to type "Request"
"WebSocket" is incompatible with "Request"
Parameter 2: type "Exception" cannot be assigned to type "SCIMException"
... (reportGeneralTypeIssues)
|
check:
src/backend/alembic/env.py#L19
"url" is not a known member of "None" (reportOptionalMemberAccess)
|
check:
src/backend/alembic/env.py#L19
Argument of type "str | None" cannot be assigned to parameter "value" of type "str" in function "set_main_option"
Type "str | None" cannot be assigned to type "str"
Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
|
check:
src/backend/alembic/env.py#L71
"autogenerate" is not a known member of "None" (reportOptionalMemberAccess)
|
check:
src/backend/alembic/versions/2024_05_07_c15b848babe3_merge_migrationsy.py#L13
Expression of type "tuple[Literal['6553b76de6ca'], Literal['b88f00283a27']]" cannot be assigned to declared type "str | None"
Type "tuple[Literal['6553b76de6ca'], Literal['b88f00283a27']]" cannot be assigned to type "str | None"
"tuple[Literal['6553b76de6ca'], Literal['b88f00283a27']]" is incompatible with "str"
Type cannot be assigned to type "None" (reportGeneralTypeIssues)
|
check:
src/backend/alembic/versions/2024_06_18_982bbef24559_update_conversations.py#L39
Argument of type "None" cannot be assigned to parameter "constraint_name" of type "str" in function "drop_constraint"
Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
|
check:
src/backend/alembic/versions/2024_07_24_208f735ed937_agnostic_patch.py#L39
Argument of type "Connection" cannot be assigned to parameter "bind" of type "Engine" in function "from_engine"
"Connection" is incompatible with "Engine" (reportGeneralTypeIssues)
|
check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
check:
src/backend/alembic/env.py#L10
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L2
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L3
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L4
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L5
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L6
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L7
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L8
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L9
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|
check:
src/backend/database_models/__init__.py#L10
Wildcard import from a library not allowed (reportWildcardImportFromLibrary)
|