Add missing TypeVar in vlc_telnet decorator (#63587)

This commit is contained in:
Marc Mueller 2022-01-07 12:08:28 +01:00 committed by GitHub
parent 7b78862a11
commit 5783c07630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ def catch_vlc_errors(
"""Catch VLC errors."""
@wraps(func)
async def wrapper(self: VlcDevice, *args: _P.args, **kwargs: _P.kwargs) -> None:
async def wrapper(self: _T, *args: _P.args, **kwargs: _P.kwargs) -> None:
"""Catch VLC errors and modify availability."""
try:
await func(self, *args, **kwargs)