Skip to content

Commit 98ec492

Browse files
committed
Add docstrings to MigrationNodes
1 parent 210a048 commit 98ec492

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/databricks/labs/ucx/assessment/sequencing.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import heapq
44
from collections import defaultdict
55
from collections.abc import Iterable
6-
from dataclasses import dataclass
6+
from dataclasses import dataclass, field
77
from typing import TypeVar
88

99
from databricks.sdk import WorkspaceClient
@@ -31,11 +31,20 @@ class MigrationStep:
3131

3232
@dataclass
3333
class MigrationNode:
34-
node_id: int
34+
node_id: int = field(compare=False)
35+
"""Globally unique id."""
36+
3537
object_type: str
38+
"""Object type. Together with `attr:object_id` a unique identifier."""
39+
3640
object_id: str
37-
object_name: str
38-
object_owner: str
41+
"""Object id. Together with `attr:object_id` a unique identifier."""
42+
43+
object_name: str = field(compare=False)
44+
"""Object name, more human friendly than `attr:object_id`."""
45+
46+
object_owner: str = field(compare=False)
47+
"""Object owner."""
3948

4049
@property
4150
def key(self) -> MigrationNodeKey:

0 commit comments

Comments
 (0)