Issue #14987: Add a missing import statement
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 56d05fb..c3338f24 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -38,6 +38,7 @@
 import sys
 import tokenize
 import types
+import warnings
 from operator import attrgetter
 from collections import namedtuple
 
diff --git a/Misc/NEWS b/Misc/NEWS
index 3bdff8b..b746969 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@
 Library
 -------
 
+- Issue #14987: Add a missing import statement to inspect.
+
 - Issue #1079: email.header.decode_header now correctly parses all the examples
   in RFC2047.  There is a necessary visible behavior change: the leading and/or
   trailing whitespace on ASCII parts is now preserved.