Skip to content

Commit a4ad2c6

Browse files
committed
Mapping from collections.abc, local
Signed-off-by: Élie Goudout <[email protected]>
1 parent 93afac8 commit a4ad2c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/annotationlib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import keyword
77
import sys
88
import types
9-
import typing
109

1110
__all__ = [
1211
"Format",
@@ -628,7 +627,9 @@ def get_annotate_function(obj):
628627
629628
Returns the __annotate__ function or None.
630629
"""
631-
if isinstance(obj, typing.Mapping):
630+
from collections.abc import Mapping
631+
632+
if isinstance(obj, Mapping):
632633
try:
633634
return obj["__annotate__"]
634635
except KeyError:

0 commit comments

Comments
 (0)