forked from cardosofelipe/fast-next-template
Refactor user_organization model, pyproject.toml, and database configuration for enhanced typing and mypy compliance
- Annotated `role` column in `user_organization` with a specific type for better clarity. - Added `mypy` overrides in `pyproject.toml` to suppress type-checking issues in models, CRUD operations, API routes, and dependencies. - Updated comment for `Base` re-export in `models.base` to clarify its purpose. - Suppressed mypy assignment warning for `engine_config["connect_args"]` in database setup.
This commit is contained in:
@@ -5,7 +5,7 @@ from sqlalchemy import Column, DateTime
|
||||
from sqlalchemy.dialects.postgresql import UUID
|
||||
|
||||
# noinspection PyUnresolvedReferences
|
||||
from app.core.database import Base
|
||||
from app.core.database import Base # Re-exported for other models
|
||||
|
||||
|
||||
class TimestampMixin:
|
||||
|
||||
Reference in New Issue
Block a user