Skip to content

Commit f6ccb97

Browse files
committed
Less history pollution
1 parent 9240b0d commit f6ccb97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/functools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,9 +990,9 @@ def register(cls, func=None, _func_is_method=False):
990990
) from None
991991

992992
# only import typing if annotation parsing is necessary
993-
import typing
993+
from typing import get_type_hints
994994
from annotationlib import Format, ForwardRef
995-
annotations = typing.get_type_hints(func, format=Format.FORWARDREF)
995+
annotations = get_type_hints(func, format=Format.FORWARDREF)
996996

997997
try:
998998
cls = annotations[argname]

0 commit comments

Comments
 (0)