-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Models: add type defs, remove ambiguity of Base
To comply with mypy, type definitions have been added and the name Base which before was using the factory declarative_base now use the decorator as_declarative. Disable no-member for cls, pylint thinks its a reference to an instance(a "self") of the class rather than a reference to the class. type: ignore on Base.__tablename__ due to false-positive error, see sqlalchemy/sqlalchemy2-stubs#127
- Loading branch information
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters