Skip to content

Commit 24ee357

Browse files
committed
Server(refactor[typing]): Narrow deprecated filter signatures
why: Deprecated API hints should be specific even if the runtime path is unused. what: - Replace Any with object in where and find_where parameter types
1 parent 654c60b commit 24ee357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libtmux/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def get_by_id(self, session_id: str) -> Session | None:
749749
version="0.16.0",
750750
)
751751

752-
def where(self, kwargs: dict[str, t.Any]) -> list[Session]:
752+
def where(self, kwargs: dict[str, object]) -> list[Session]:
753753
"""Filter through sessions, return list of :class:`Session`.
754754
755755
.. deprecated:: 0.17
@@ -763,7 +763,7 @@ def where(self, kwargs: dict[str, t.Any]) -> list[Session]:
763763
version="0.17.0",
764764
)
765765

766-
def find_where(self, kwargs: dict[str, t.Any]) -> Session | None:
766+
def find_where(self, kwargs: dict[str, object]) -> Session | None:
767767
"""Filter through sessions, return first :class:`Session`.
768768
769769
.. deprecated:: 0.17

0 commit comments

Comments
 (0)