diff options
Diffstat (limited to 'quarg/database/tables.py')
-rw-r--r-- | quarg/database/tables.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/quarg/database/tables.py b/quarg/database/tables.py index 6e92c14..c71cedd 100644 --- a/quarg/database/tables.py +++ b/quarg/database/tables.py @@ -1,19 +1,21 @@ import datetime +from sqlalchemy.orm import declarative_base, relationship from sqlalchemy.schema import Column, ForeignKey -from sqlalchemy.types import BigInteger, Boolean, DateTime, Integer, Text, TypeDecorator, TypeEngine -from sqlalchemy.ext.declarative import declarative_base -from sqlalchemy.orm import relationship +from sqlalchemy.types import ( + BigInteger, + Boolean, + DateTime, + Integer, + Text, + TypeDecorator, + TypeEngine, +) -# pylint: disable=too-few-public-methods # Timestamps are saved in the database in UTC without timezone info, so attach # a UTC timezone to the datetime object class DateTimeUTC(TypeDecorator): - # pylint complains that process_literal_param and python_type are - # abstract but not overriden. This seems to not be necessary with - # SQLAlchemy, so squash those warnings - # pylint: disable=abstract-method impl = TypeEngine cache_ok = True |