Skip to content

Commit a407913

Browse files
committed
fix types
1 parent 96fce16 commit a407913

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/idom/core/proto.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ class ComponentType(Protocol):
3232
key: Key | None
3333
"""An identifier which is unique amongst a component's immediate siblings"""
3434

35-
definition_id: int
36-
"""A globally unique identifier for this component definition.
35+
@property
36+
def definition_id(self) -> int:
37+
"""A globally unique identifier for this component definition.
3738
38-
Usually the :func:`id` of this class or an underlying function.
39-
"""
39+
Usually the :func:`id` of this class or an underlying function.
40+
"""
4041

4142
def render(self) -> VdomDict:
4243
"""Render the component's :class:`VdomDict`."""

0 commit comments

Comments
 (0)