We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f383105 commit bd0f910Copy full SHA for bd0f910
tree/__init__.py
@@ -90,17 +90,16 @@ class ObjectProxy(object):
90
91
K = TypeVar("K")
92
V = TypeVar("V")
93
+
94
# A generic monomorphic structure type, e.g. ``StructureKV[Text, int]``
95
# is an arbitrarily nested structure where keys must be of type ``Text``
96
# and values are integers.
-# pytype: disable=not-supported-yet
97
-# TODO(b/146184840): Remove disable= when pytype supports recursive types.
98
StructureKV = Union[
99
Sequence["StructureKV[K, V]"],
100
Mapping[K, "StructureKV[K, V]"],
101
V,
102
]
103
-# pytype: enable=not-supported-yet
104
# A specialization of ``StructureKV`` for the common case of ``Text`` keys.
105
try:
106
Structure = StructureKV[Text, V]
0 commit comments