Skip to content

Commit b9498bc

Browse files
committed
patch: 1.3.1 - added log as default component on deref handlers, changed rid_types to a non init field to prevent dataclass errors
1 parent ad5ee96 commit b9498bc

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "koi-net"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
description = "Implementation of KOI-net protocol in Python"
55
authors = [
66
{name = "Luke Miller", email = "luke@block.science"}

src/koi_net/components/interfaces/deref_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from dataclasses import dataclass
1+
from dataclasses import dataclass, field
2+
from logging import Logger
23
from typing import TYPE_CHECKING
34

45
from rid_lib.core import RID, RIDType
@@ -10,9 +11,10 @@
1011

1112
@dataclass
1213
class DerefHandler:
14+
log: Logger
1315
effector: "Effector"
1416

15-
rid_types: tuple[RIDType] = ()
17+
rid_types: tuple[RIDType] = field(init=False)
1618

1719
def __post_init__(self):
1820
self.effector.register_handler(self)

0 commit comments

Comments
 (0)