From: Maple Date: Sun, 3 Apr 2022 09:30:08 +0000 (+0800) Subject: fix small indentation typo (#7882) X-Git-Tag: rel_2_0_0b1~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ea12b2f5c9285acf9dcbf3a94e7cfabd4f5085d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix small indentation typo (#7882) --- 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.