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 f2002e2 commit 275bb9cCopy full SHA for 275bb9c
src/attr/validators.pyi
@@ -24,7 +24,6 @@ _I = TypeVar("_I", bound=Iterable)
24
_K = TypeVar("_K")
25
_V = TypeVar("_V")
26
_M = TypeVar("_M", bound=Mapping)
27
-_UT = TypeVar("_UT", bound=UnionType)
28
29
def set_disabled(run: bool) -> None: ...
30
def get_disabled() -> bool: ...
@@ -47,7 +46,7 @@ def instance_of(
47
46
@overload
48
def instance_of(type: tuple[type, ...]) -> _ValidatorType[Any]: ...
49
50
-def instance_of(type: _UT) -> _ValidatorType[_UT]: ...
+def instance_of(type: UnionType) -> _ValidatorType[Any]: ...
51
def optional(
52
validator: (
53
_ValidatorType[_T]
0 commit comments