summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/indexable.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/ext/indexable.py')
-rw-r--r--lib/sqlalchemy/ext/indexable.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/sqlalchemy/ext/indexable.py b/lib/sqlalchemy/ext/indexable.py
index 0bc2b65bb..368e5b00a 100644
--- a/lib/sqlalchemy/ext/indexable.py
+++ b/lib/sqlalchemy/ext/indexable.py
@@ -232,7 +232,7 @@ from ..orm.attributes import flag_modified
from ..ext.hybrid import hybrid_property
-__all__ = ['index_property']
+__all__ = ["index_property"]
class index_property(hybrid_property): # noqa
@@ -251,8 +251,14 @@ class index_property(hybrid_property): # noqa
_NO_DEFAULT_ARGUMENT = object()
def __init__(
- self, attr_name, index, default=_NO_DEFAULT_ARGUMENT,
- datatype=None, mutable=True, onebased=True):
+ self,
+ attr_name,
+ index,
+ default=_NO_DEFAULT_ARGUMENT,
+ datatype=None,
+ mutable=True,
+ onebased=True,
+ ):
"""Create a new :class:`.index_property`.
:param attr_name: