Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 7, 2024
1 parent 5c45b96 commit 95d78a5
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions jaraco/classes/properties.py
Expand Up @@ -50,16 +50,14 @@ def __get__(
self,
obj: None,
objtype: type[object] | None = None,
) -> Self:
...
) -> Self: ...

@overload
def __get__(
self,
obj: object,
objtype: type[object] | None = None,
) -> object:
...
) -> object: ...

def __get__(
self,
Expand Down Expand Up @@ -212,21 +210,18 @@ def setter(self, fset: _ClassMethodSetter | _CallableSetter) -> Self:
def _ensure_method(
cls,
fn: _ClassMethodGetter | _CallableGetter,
) -> _ClassMethodGetter:
...
) -> _ClassMethodGetter: ...

@overload
@classmethod
def _ensure_method(cls, fn: _StaticMethodGetter) -> _StaticMethodGetter:
...
def _ensure_method(cls, fn: _StaticMethodGetter) -> _StaticMethodGetter: ...

@overload
@classmethod
def _ensure_method(
cls,
fn: _ClassMethodSetter | _CallableSetter,
) -> _ClassMethodSetter:
...
) -> _ClassMethodSetter: ...

@classmethod
def _ensure_method(
Expand Down

0 comments on commit 95d78a5

Please sign in to comment.