Skip to content

Commit 2f0fc65

Browse files
committed
Fix boltons __get__ stubtest: match runtime signature + ignore[override]
1 parent 5b0c6f4 commit 2f0fc65

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

stubs/boltons/boltons/funcutils.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import functools
22
from _typeshed import Incomplete
3-
from collections.abc import Callable
43
from functools import total_ordering as total_ordering
5-
from typing import Any
64

75
NO_DEFAULT: Incomplete
86

@@ -28,14 +26,14 @@ def copy_function(orig, copy_dict: bool = True): ...
2826
def partial_ordering(cls): ...
2927

3028
class InstancePartial(functools.partial[Incomplete]):
31-
def __get__(self, obj: Any, obj_type: type[Any] | None = None, /) -> Callable[..., Incomplete]: ...
29+
def __get__(self, obj, obj_type): ... # type: ignore[override]
3230

3331
class CachedInstancePartial(functools.partial[Incomplete]):
3432
__name__: Incomplete
3533
def __set_name__(self, obj_type, name) -> None: ...
3634
__doc__: Incomplete
3735
__module__: Incomplete
38-
def __get__(self, obj: Any, obj_type: type[Any] | None = None, /) -> Callable[..., Incomplete]: ...
36+
def __get__(self, obj, obj_type): ... # type: ignore[override]
3937

4038
partial = CachedInstancePartial
4139

0 commit comments

Comments
 (0)