Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/annotationlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import keyword
import sys
import types
import typing

__all__ = [
"Format",
Expand Down Expand Up @@ -627,7 +628,7 @@ def get_annotate_function(obj):

Returns the __annotate__ function or None.
"""
if isinstance(obj, dict):
if isinstance(obj, typing.Mapping):
try:
return obj["__annotate__"]
except KeyError:
Expand Down
Loading