1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Update setup.py

Fix error:
UnboundLocalError: local variable 'typing_stub_files' referenced before assignment
This commit is contained in:
triple Mu
2023-05-27 17:23:32 +08:00
committed by GitHub
parent 7b998c30e7
commit 1bffe170e1
+1
View File
@@ -25,6 +25,7 @@ def main():
root_module_path = os.path.join(SCRIPT_DIR, "cv2")
py_typed_path = os.path.join(root_module_path, "py.typed")
typing_stub_files = []
if os.path.isfile(py_typed_path):
typing_stub_files = collect_module_typing_stub_files(root_module_path)
if len(typing_stub_files) > 0: