summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/decl_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/decl_api.py')
-rw-r--r--lib/sqlalchemy/orm/decl_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/decl_api.py b/lib/sqlalchemy/orm/decl_api.py
index 94c5181de..01766ad85 100644
--- a/lib/sqlalchemy/orm/decl_api.py
+++ b/lib/sqlalchemy/orm/decl_api.py
@@ -1,4 +1,4 @@
-# ext/declarative/api.py
+# orm/declarative/api.py
# Copyright (C) 2005-2022 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
@@ -1274,7 +1274,7 @@ class registry:
if isinstance(cls, type):
class_dict["__doc__"] = cls.__doc__
- if self.constructor:
+ if self.constructor is not None:
class_dict["__init__"] = self.constructor
class_dict["__abstract__"] = True