Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vrslev committed Sep 18, 2024
1 parent 260c3b2 commit 0abed16
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/jack_server/_output.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
from __future__ import annotations

from functools import wraps
from typing import Callable
from typing import TYPE_CHECKING, Callable

import jack_server._lib as lib

if TYPE_CHECKING:
from ctypes import _FuncPointer

_dont_garbage_collect: list[object] = []


def _wrap_error_or_info_callback(
callback: Callable[[str], None] | None
) -> lib.PrintFunction:
callback: Callable[[str], None] | None,
) -> _FuncPointer:
if callback:

@wraps(callback)
Expand Down

0 comments on commit 0abed16

Please sign in to comment.