Skip to content

Commit 64627bf

Browse files
authored
Export ForwardRef from typing in 3.14 (#2795)
1 parent 6ff23d0 commit 64627bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

astroid/brain/brain_typing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ def __class_getitem__(cls, item): return cls
470470
if PY314_PLUS:
471471
code += textwrap.dedent(
472472
"""
473+
from annotationlib import ForwardRef
473474
class Union:
474475
@classmethod
475476
def __class_getitem__(cls, item): return cls

0 commit comments

Comments
 (0)