Skip to content

Commit 94f9bb7

Browse files
authored
fix load_library.py:load_library() return type annotation
1 parent 691c651 commit 94f9bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PyPI/Package/src/webui/load_library.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _download_library():
5656

5757

5858
# Load WebUI Dynamic Library
59-
def load_library() -> CDLL:
59+
def load_library() -> CDLL | None:
6060
library: CDLL | None = None
6161
lib_path = _get_library_path()
6262
if not os.path.exists(lib_path):
@@ -87,4 +87,4 @@ def load_library() -> CDLL:
8787
else:
8888
print("Unsupported OS")
8989

90-
return library
90+
return library

0 commit comments

Comments
 (0)