]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix type 6789/head
authorKazantcev Andrey <45011689+heckad@users.noreply.github.com>
Tue, 20 Jul 2021 10:31:47 +0000 (13:31 +0300)
committerGitHub <noreply@github.com>
Tue, 20 Jul 2021 10:31:47 +0000 (13:31 +0300)
https://github.com/sqlalchemy/sqlalchemy2-stubs/pull/132#issuecomment-883159494

test/ext/mypy/files/other_mapper_props.py

index 993e14458858aa48be3f68e2f9ce9f2ad80304b9..5d7587d9c106004550caaef5be757f3e700be4d1 100644 (file)
@@ -42,7 +42,7 @@ class User:
 
 s = Session()
 
-u1: User = s.get(User, 5)
+u1: Optional[User] = s.get(User, 5)
 
 q1: Optional[str] = u1.big_col