summaryrefslogtreecommitdiff
path: root/examples/inheritance
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-01-06 01:19:47 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-01-06 18:23:11 -0500
commit1e278de4cc9a4181e0747640a960e80efcea1ca9 (patch)
tree13d0c035807613bfa07e734acad79b9c843cb8b0 /examples/inheritance
parent1e1a38e7801f410f244e4bbb44ec795ae152e04e (diff)
downloadsqlalchemy-1e278de4cc9a4181e0747640a960e80efcea1ca9.tar.gz
Post black reformatting
Applied on top of a pure run of black -l 79 in I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9, this set of changes resolves all remaining flake8 conditions for those codes we have enabled in setup.cfg. Included are resolutions for all remaining flake8 issues including shadowed builtins, long lines, import order, unused imports, duplicate imports, and docstring issues. Change-Id: I4f72d3ba1380dd601610ff80b8fb06a2aff8b0fe
Diffstat (limited to 'examples/inheritance')
-rw-r--r--examples/inheritance/concrete.py22
-rw-r--r--examples/inheritance/joined.py21
-rw-r--r--examples/inheritance/single.py24
3 files changed, 35 insertions, 32 deletions
diff --git a/examples/inheritance/concrete.py b/examples/inheritance/concrete.py
index 2245aa4e0..4eb89984a 100644
--- a/examples/inheritance/concrete.py
+++ b/examples/inheritance/concrete.py
@@ -1,17 +1,17 @@
"""Concrete-table (table-per-class) inheritance example."""
-from sqlalchemy import (
- Column,
- Integer,
- String,
- ForeignKey,
- create_engine,
- inspect,
- or_,
-)
-from sqlalchemy.orm import relationship, Session, with_polymorphic
-from sqlalchemy.ext.declarative import declarative_base
+from sqlalchemy import Column
+from sqlalchemy import create_engine
+from sqlalchemy import ForeignKey
+from sqlalchemy import inspect
+from sqlalchemy import Integer
+from sqlalchemy import or_
+from sqlalchemy import String
from sqlalchemy.ext.declarative import ConcreteBase
+from sqlalchemy.ext.declarative import declarative_base
+from sqlalchemy.orm import relationship
+from sqlalchemy.orm import Session
+from sqlalchemy.orm import with_polymorphic
Base = declarative_base()
diff --git a/examples/inheritance/joined.py b/examples/inheritance/joined.py
index a3a61d763..74a6e3649 100644
--- a/examples/inheritance/joined.py
+++ b/examples/inheritance/joined.py
@@ -1,16 +1,17 @@
"""Joined-table (table-per-subclass) inheritance example."""
-from sqlalchemy import (
- Column,
- Integer,
- String,
- ForeignKey,
- create_engine,
- inspect,
- or_,
-)
-from sqlalchemy.orm import relationship, Session, with_polymorphic
+from sqlalchemy import Column
+from sqlalchemy import create_engine
+from sqlalchemy import ForeignKey
+from sqlalchemy import inspect
+from sqlalchemy import Integer
+from sqlalchemy import or_
+from sqlalchemy import String
from sqlalchemy.ext.declarative import declarative_base
+from sqlalchemy.orm import relationship
+from sqlalchemy.orm import Session
+from sqlalchemy.orm import with_polymorphic
+
Base = declarative_base()
diff --git a/examples/inheritance/single.py b/examples/inheritance/single.py
index 46d690c94..0d5871cb1 100644
--- a/examples/inheritance/single.py
+++ b/examples/inheritance/single.py
@@ -1,16 +1,18 @@
"""Single-table (table-per-hierarchy) inheritance example."""
-from sqlalchemy import (
- Column,
- Integer,
- String,
- ForeignKey,
- create_engine,
- inspect,
- or_,
-)
-from sqlalchemy.orm import relationship, Session, with_polymorphic
-from sqlalchemy.ext.declarative import declarative_base, declared_attr
+from sqlalchemy import Column
+from sqlalchemy import create_engine
+from sqlalchemy import ForeignKey
+from sqlalchemy import inspect
+from sqlalchemy import Integer
+from sqlalchemy import or_
+from sqlalchemy import String
+from sqlalchemy.ext.declarative import declarative_base
+from sqlalchemy.ext.declarative import declared_attr
+from sqlalchemy.orm import relationship
+from sqlalchemy.orm import Session
+from sqlalchemy.orm import with_polymorphic
+
Base = declarative_base()