Skip to content

Commit 238f009

Browse files
committed
Interfaces: Adjust cache fields to use different 'typing.ClassVar' rather than 'typing_extensions.ClassVar'.
(python/cpython#133956)
1 parent 7038ace commit 238f009

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sources/dynadoc/interfaces.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
from __future__ import annotations
2525

26+
import typing as _typing # https://github.com/python/cpython/issues/133956
27+
2628
from . import __
2729
from . import nomina as _nomina
2830

@@ -73,8 +75,9 @@ class AnnotationsCache:
7375
Has special values for absent and incomplete entries.
7476
'''
7577

76-
absent: __.typx.ClassVar[ object ] = object( )
77-
incomplete: __.typx.ClassVar[ object ] = object( )
78+
# https://github.com/python/cpython/issues/133956
79+
absent: _typing.ClassVar[ object ] = object( )
80+
incomplete: _typing.ClassVar[ object ] = object( )
7881

7982
entries: dict[ __.typx.Any, __.typx.Any ] = (
8083
__.dcls.field( default_factory = dict[ __.typx.Any, __.typx.Any ] ) )

0 commit comments

Comments
 (0)