diff options
| author | Federico Caselli <cfederico87@gmail.com> | 2021-11-21 20:36:35 +0100 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2021-11-22 15:03:17 +0000 |
| commit | 0b95f0055be252b13e99b0a944466f60b5e367ff (patch) | |
| tree | 6ae4135fd408c4e69582c4f6fa458b007553aeab /lib/sqlalchemy/orm/collections.py | |
| parent | e04baa2953fb5d0d29f5dca01ea6882bf1fa1cd4 (diff) | |
| download | sqlalchemy-0b95f0055be252b13e99b0a944466f60b5e367ff.tar.gz | |
Remove object in class definition
References: #4600
Change-Id: I2a62ddfe00bc562720f0eae700a497495d7a987a
Diffstat (limited to 'lib/sqlalchemy/orm/collections.py')
| -rw-r--r-- | lib/sqlalchemy/orm/collections.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sqlalchemy/orm/collections.py b/lib/sqlalchemy/orm/collections.py index f9afd4ebf..01d77e92b 100644 --- a/lib/sqlalchemy/orm/collections.py +++ b/lib/sqlalchemy/orm/collections.py @@ -20,7 +20,7 @@ provided. One is a bundle of generic decorators that map function arguments and return values to events:: from sqlalchemy.orm.collections import collection - class MyClass(object): + class MyClass: # ... @collection.adds(1) @@ -125,7 +125,7 @@ __all__ = [ __instrumentation_mutex = util.threading.Lock() -class _PlainColumnGetter(object): +class _PlainColumnGetter: """Plain column getter, stores collection of Column objects directly. @@ -160,7 +160,7 @@ class _PlainColumnGetter(object): return key[0] -class _SerializableColumnGetter(object): +class _SerializableColumnGetter: """Column-based getter used in version 0.7.6 only. Remains here for pickle compatibility with 0.7.6. @@ -251,7 +251,7 @@ def column_mapped_collection(mapping_spec): return lambda: MappedCollection(keyfunc) -class _SerializableAttrGetter(object): +class _SerializableAttrGetter: def __init__(self, name): self.name = name self.getter = operator.attrgetter(name) @@ -299,7 +299,7 @@ def mapped_collection(keyfunc): return lambda: MappedCollection(keyfunc) -class collection(object): +class collection: """Decorators for entity collection classes. The decorators fall into two groups: annotations and interception recipes. @@ -567,7 +567,7 @@ collection_adapter = operator.attrgetter("_sa_adapter") """Fetch the :class:`.CollectionAdapter` for a collection.""" -class CollectionAdapter(object): +class CollectionAdapter: """Bridges between the ORM and arbitrary Python collections. Proxies base-level collection operations (append, remove, iterate) |
