Prevent assign unknown attributes on Model

by adding __slots__ on PoolMeta

issue8567
review254091002
This commit is contained in:
Cédric Krier committed 2019-09-07 23:45:08 +02:00
1 parent b40be027ff
commit d044563fd4
1 file changed
+2
+2
View File
@@ -33,6 +33,8 @@ logger = logging.getLogger(__name__)
class _SyntaxMixin(object):
__slots__ = ()
@classmethod
def get_syntaxes(cls):
pool = Pool()