From 345a210c0a1525eabd4aef70c7d0c4bdcec98a85 Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Thu, 8 Jul 2021 15:59:09 -0400 Subject: [PATCH] clean up duplicate import and comment --- Lib/inspect.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Lib/inspect.py b/Lib/inspect.py index 89b2e722be8fad3..7a2eefec5a80d42 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -2096,10 +2096,6 @@ def _signature_fromstr(cls, obj, s, skip_bound_arg=True): """Private helper to parse content of '__text_signature__' and return a Signature based on it. """ - # Lazy import ast because it's relatively heavy and - # it's not used for other than this function. - import ast - Parameter = cls._parameter_cls clean_signature, self_parameter, last_positional_only = \