Skip to content

Commit bd0f910

Browse files
superbobrycopybara-github
authored andcommitted
Removed pytype: disable=not-supported-yet as pytype does support recursive types now
PiperOrigin-RevId: 432926559
1 parent f383105 commit bd0f910

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tree/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,16 @@ class ObjectProxy(object):
9090

9191
K = TypeVar("K")
9292
V = TypeVar("V")
93+
9394
# A generic monomorphic structure type, e.g. ``StructureKV[Text, int]``
9495
# is an arbitrarily nested structure where keys must be of type ``Text``
9596
# and values are integers.
96-
# pytype: disable=not-supported-yet
97-
# TODO(b/146184840): Remove disable= when pytype supports recursive types.
9897
StructureKV = Union[
9998
Sequence["StructureKV[K, V]"],
10099
Mapping[K, "StructureKV[K, V]"],
101100
V,
102101
]
103-
# pytype: enable=not-supported-yet
102+
104103
# A specialization of ``StructureKV`` for the common case of ``Text`` keys.
105104
try:
106105
Structure = StructureKV[Text, V]

0 commit comments

Comments
 (0)