]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update __init__.py (#7778)
authorJostein Leira <jol@computas.com>
Thu, 3 Mar 2022 21:40:22 +0000 (22:40 +0100)
committerGitHub <noreply@github.com>
Thu, 3 Mar 2022 21:40:22 +0000 (22:40 +0100)
Missing parenthesis in example code.

examples/dogpile_caching/__init__.py

index e5ea52ea092a94aba553abb4c7459fb58a112adc..f8c1bb582bc65ddd894070ae5dc79f67cd773cee 100644 (file)
@@ -31,7 +31,7 @@ E.g.::
     # execute and results
     result = session.execute(stmt)
 
-    print(result.scalars.all())
+    print(result.scalars().all())
 
 To run, both SQLAlchemy and dogpile.cache must be
 installed or on the current PYTHONPATH. The demo will create a local