Skip to content

Commit 275bb9c

Browse files
committed
Declare bankruptcy
1 parent f2002e2 commit 275bb9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/attr/validators.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ _I = TypeVar("_I", bound=Iterable)
2424
_K = TypeVar("_K")
2525
_V = TypeVar("_V")
2626
_M = TypeVar("_M", bound=Mapping)
27-
_UT = TypeVar("_UT", bound=UnionType)
2827

2928
def set_disabled(run: bool) -> None: ...
3029
def get_disabled() -> bool: ...
@@ -47,7 +46,7 @@ def instance_of(
4746
@overload
4847
def instance_of(type: tuple[type, ...]) -> _ValidatorType[Any]: ...
4948
@overload
50-
def instance_of(type: _UT) -> _ValidatorType[_UT]: ...
49+
def instance_of(type: UnionType) -> _ValidatorType[Any]: ...
5150
def optional(
5251
validator: (
5352
_ValidatorType[_T]

0 commit comments

Comments
 (0)