From 8f7f07898720b875cfbf447a7106875db4a904b3 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 27 Feb 2022 14:42:12 +0100 Subject: Limit expensive decorator function (#1407) --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 8174067d..ace1f32d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -61,6 +61,11 @@ Release date: TBA * Fix ``ClassDef.fromlineno``. For Python < 3.8 the ``lineno`` attribute includes decorators. ``fromlineno`` should return the line of the ``class`` statement itself. +* Performance improvements. Only run expensive decorator functions when + non-default Deprecation warnings are enabled, eg. during a Pytest run. + + Closes #1383 + What's New in astroid 2.9.4? ============================ Release date: TBA -- cgit v1.2.1