diff --git a/stdlib/2and3/pstats.pyi b/stdlib/2and3/pstats.pyi index 68c937e2725c..9c74aeb9c3de 100644 --- a/stdlib/2and3/pstats.pyi +++ b/stdlib/2and3/pstats.pyi @@ -1,7 +1,6 @@ import sys from _typeshed import AnyPath from cProfile import Profile as _cProfile -from enum import Enum from profile import Profile from typing import IO, Any, Dict, Iterable, List, Optional, Text, Tuple, TypeVar, Union, overload @@ -9,6 +8,7 @@ _Selector = Union[str, float, int] _T = TypeVar("_T", bound=Stats) if sys.version_info >= (3, 7): + from enum import Enum class SortKey(str, Enum): CALLS: str CUMULATIVE: str