]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix small indentation typo (#7882)
authorMaple <wang-jiaxun@outlook.com>
Sun, 3 Apr 2022 09:30:08 +0000 (17:30 +0800)
committerGitHub <noreply@github.com>
Sun, 3 Apr 2022 09:30:08 +0000 (11:30 +0200)
doc/build/tutorial/metadata.rst

index 24284c4aaca312d33be7018579efe588a30a4bb5..afaf9d6100e7b9fca86c185abf995bb6d96ebdd3 100644 (file)
@@ -446,18 +446,18 @@ than having the declarative process generate it::
     class User(Base):
         __table__ = user_table
 
-         addresses = relationship("Address", back_populates="user")
+        addresses = relationship("Address", back_populates="user")
 
-         def __repr__(self):
+        def __repr__(self):
             return f"User({self.name!r}, {self.fullname!r})"
 
     class Address(Base):
         __table__ = address_table
 
-         user = relationship("User", back_populates="addresses")
+        user = relationship("User", back_populates="addresses")
 
-         def __repr__(self):
-             return f"Address({self.email_address!r})"
+        def __repr__(self):
+            return f"Address({self.email_address!r})"
 
 The above two classes are equivalent to those which we declared in the
 previous mapping example.