From 2ea12b2f5c9285acf9dcbf3a94e7cfabd4f5085d Mon Sep 17 00:00:00 2001 From: Maple Date: Sun, 3 Apr 2022 17:30:08 +0800 Subject: [PATCH] fix small indentation typo (#7882) --- doc/build/tutorial/metadata.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/build/tutorial/metadata.rst b/doc/build/tutorial/metadata.rst index 24284c4aac..afaf9d6100 100644 --- a/doc/build/tutorial/metadata.rst +++ b/doc/build/tutorial/metadata.rst @@ -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. -- 2.47.2