Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Add types, update __repr__ and improve docs for data_store and models
Browse files Browse the repository at this point in the history
Add types for data_store and model, as part of an effort to gradually
roll out types in the code base. Related to #56.

Change import structure for sqlalchemy and only import the top level
package, to make the code easier to read and understand where e.g.,
"Column" comes from.

Improve the docstrings by attempting to have a first line summary and
additional description in follow lines. Types were removed from the
docstring as they are part of the function signature.
The docstring is written in 120 character lines, given that the codebase
is using them, but it would be easier to read in terminal usage if they
were 80 char lines.

Update the __repr__ method of models to print only the relevant files
(and remove a bunch of unnecessary code).
  • Loading branch information
vikahl committed Aug 5, 2021
1 parent 4a560cb commit 70b4cc9
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 142 deletions.
Loading

0 comments on commit 70b4cc9

Please sign in to comment.