]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update changelog and formatting
authorYurii Karabas <1998uriyyo@gmail.com>
Tue, 7 Feb 2023 13:21:15 +0000 (15:21 +0200)
committerYurii Karabas <1998uriyyo@gmail.com>
Tue, 7 Feb 2023 13:21:15 +0000 (15:21 +0200)
doc/build/changelog/unreleased_20/9255.rst
lib/sqlalchemy/sql/traversals.py

index 012dc732fd50468f48fe5a939c0b0da87a41d701..82c5f873239ae8247f64097149473ddf11068e88 100644 (file)
@@ -2,4 +2,4 @@
     :tags: typing
     :tickets: 9254
 
-    Remove ``typing.Self`` workaround.
\ No newline at end of file
+    Remove ``typing.Self`` workaround. Pull request courtesy Yurii Karabas.
index 4c7d939ab3092351f1039d827bf6a699563b544d..4b55560ec92145c837a4c0d348c9734c08717fc5 100644 (file)
@@ -199,9 +199,7 @@ class GenerativeOnTraversal(HasShallowCopy):
 
     __slots__ = ()
 
-    def _generate(
-        self,
-    ) -> Self:
+    def _generate(self) -> Self:
         cls = self.__class__
         s = cls.__new__(cls)
         self._shallow_copy_to(s)