diff --git a/lib/python/pyflyby/_autoimp.py b/lib/python/pyflyby/_autoimp.py index 5689bf16..b1606850 100644 --- a/lib/python/pyflyby/_autoimp.py +++ b/lib/python/pyflyby/_autoimp.py @@ -883,7 +883,7 @@ def _remove_from_missing_imports(self, fullname): # - tests.test_autoimp.test_method_reference_current_class # - tests.test_autoimp.test_find_missing_imports_class_name_1 # - tests.test_autoimp.test_scan_for_import_issues_class_defined_after_use - inside_class = missing_import[1].scope_info.get('_in_class_def') + # inside_class = missing_import[1].scope_info.get('_in_class_def') if missing_import[1].startswith(fullname): self.missing_imports.remove(missing_import) diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 69359deb..de98c5a3 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -787,5 +787,5 @@ class A: class B: param1: str - """).strip().format() + """).strip() assert result == expected