The problem is that this is the line:
__all__ = (
"Base",
"TimestampMixin",
"BaseUser",
"User",
"Locale",
"DBBot"
)
It turns you into such a
__all__ = ("Base", "TimestampMixin", "BaseUser", "User", "Locale", "DBBot")
Add a trailing comma (Ruff playground):
__all__ = (
"Base",
"TimestampMixin",
"BaseUser",
"User",
"Locale",
"DBBot",
)