Skip to content

Commit

Permalink
Merge pull request #196 from fredrikrab/master
Browse files Browse the repository at this point in the history
Fix issue with mutuable default value in dataclass parameter
  • Loading branch information
aplaice committed Jun 1, 2023
2 parents 7bbd216 + 87a95a8 commit 2499c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crowd_anki/anki/hook_vendor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from aqt import gui_hooks

from dataclasses import dataclass
from dataclasses import dataclass, field
from typing import Any

from ..config.config_settings import ConfigSettings
Expand All @@ -14,7 +14,7 @@
class HookVendor:
window: Any
config: ConfigSettings
hook_manager: AnkiHookManager = AnkiHookManager()
hook_manager: AnkiHookManager = field(default_factory=AnkiHookManager)

def setup_hooks(self):
self.setup_exporter_hook()
Expand Down

0 comments on commit 2499c4b

Please sign in to comment.