Skip to content

Commit

Permalink
Fix attribute typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Jul 27, 2023
1 parent b004941 commit 6299601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roop/core.py
Expand Up @@ -109,7 +109,7 @@ def limit_resources() -> None:
memory = roop.globals.max_memory * 1024 ** 6
if platform.system().lower() == 'windows':
import ctypes
kernel32 = ctypes.windll.kernel32
kernel32 = ctypes.windll.kernel32 # type: ignore[attr-defined]
kernel32.SetProcessWorkingSetSize(-1, ctypes.c_size_t(memory), ctypes.c_size_t(memory))
else:
import resource
Expand Down

0 comments on commit 6299601

Please sign in to comment.