From 7fdad16d7676c5e05cfbee5a884e95362d8a7604 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Wed, 2 Sep 2015 21:57:39 +0300 Subject: Add support for understanding class creation using `type.__new__(mcs, name, bases, attrs)`` Until now, inferring this kind of calls resulted in Instances, not in classes, since astroid didn't understand that the presence of the metaclass in the call leads to a class creationg, not to an instance creation. --- ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index f865343..62765c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -303,6 +303,13 @@ Change log for the astroid package (used to be astng) fact. Recommandations to move to the new nodes are emitted accordingly, the old names will be removed in astroid 2.0. + * Add support for understanding class creation using `type.__new__(mcs, name, bases, attrs)`` + + Until now, inferring this kind of calls resulted in Instances, not in classes, + since astroid didn't understand that the presence of the metaclass in the call + leads to a class creationg, not to an instance creation. + + 2015-03-14 -- 1.3.6 -- cgit v1.2.1