Skip to content

Commit

Permalink
Fix linting in stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillkuettel committed May 6, 2024
1 parent 9f80a67 commit 9c4d0d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stubs/pyramid/config/adapters.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from pyramid.interfaces import IPredicateInfo


class _SubscriberPredicateClass(Protocol):
def __init__(self, __value: Any, __info: IPredicateInfo): ...
def __init__(self, __value: Any, __info: IPredicateInfo, /): ...
def text(self) -> str: ...
def phash(self) -> str: ...
def __call__(self, event: Any) -> bool: ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/pyramid/config/routes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ from pyramid.interfaces import IRoutesMapper


class _RoutePredicateClass(Protocol):
def __init__(self, __value: Any, __info: IPredicateInfo): ...
def __init__(self, __value: Any, __info: IPredicateInfo, /): ...
def text(self) -> str: ...
def phash(self) -> str: ...
def __call__(self, request: IRequest) -> bool: ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/pyramid/config/views.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ _View: TypeAlias = Callable[[Any, IRequest], Any] | Callable[[IRequest], Any]


class _ViewPredicateClass(Protocol):
def __init__(self, __value: Any, __info: IPredicateInfo): ...
def __init__(self, __value: Any, __info: IPredicateInfo, /): ...
def text(self) -> str: ...
def phash(self) -> str: ...
def __call__(self, context: Any, request: IRequest) -> bool: ...
Expand Down

0 comments on commit 9c4d0d7

Please sign in to comment.