Skip to content

Commit 003afa5

Browse files
don't import enum in Python 2
Fixes a pytype issue from #1720.
1 parent 9656feb commit 003afa5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/2and3/plistlib.pyi

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ from typing import (
55
Type, TypeVar,
66
)
77
from typing import Dict as DictT
8-
from enum import Enum
98
import sys
9+
if sys.version_info >= (3,):
10+
from enum import Enum
11+
1012

1113
mm = MutableMapping[str, Any]
1214
_D = TypeVar('_D', bound=mm)

0 commit comments

Comments
 (0)