From 65450d81ff6053f90947e003bb7e15d2a26a77ea Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Thu, 6 Aug 2020 00:03:54 -0700 Subject: [PATCH] Fix multi-part module import errors (#4395) * Pyright detects and reports cases where a multi-part module name is accessed but is not explicitly imported. These are dangerous because they rely on import resolution ordering within a program, which can easily change. This change eliminates errors detected by pyright. * Fixed regression caught by CI test. * Fixed black formatting issues. Co-authored-by: Eric Traut --- stdlib/2and3/mailbox.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/mailbox.pyi b/stdlib/2and3/mailbox.pyi index 3742b75c7..a089fd3b8 100644 --- a/stdlib/2and3/mailbox.pyi +++ b/stdlib/2and3/mailbox.pyi @@ -1,4 +1,4 @@ -import email +import email.message from _typeshed import AnyPath from types import TracebackType from typing import (