Skip to content

Commit 49e9e64

Browse files
authored
use Any for FILE_HANDLER_CB type
1 parent a02f563 commit 49e9e64

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PyPI/Package/src/webui/webui.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
from __future__ import annotations
1313

1414
import warnings
15-
from typing import Callable, Optional, TypeAlias
15+
from typing import Any, Callable, Optional, TypeAlias
1616
from ctypes import *
1717

1818
# Import all the raw bindings
1919
from . import webui_bindings as _raw
2020

2121

22-
_FileHandlerCallback: TypeAlias = _raw.FILE_HANDLER_CB
2322
# C function type for the file handler window
2423
filehandler_window_callback = CFUNCTYPE(c_void_p, c_size_t, c_char_p, POINTER(c_int))
2524

@@ -619,7 +618,7 @@ def __init__(self, window_id: Optional[int] = None):
619618
self._cb_func_list: dict = {}
620619

621620
# gets used for both filehandler and filehandler_window, should wipe out the other just how it does in C
622-
self._file_handler_cb: _FileHandlerCallback = None
621+
self._file_handler_cb: Any = None
623622
self._buffers: list = []
624623

625624
# -- dispatcher for function bindings -----------

0 commit comments

Comments
 (0)