Skip to content

Commit 56bb71c

Browse files
committed
chore: low-hanging fruit on __init__
1 parent e084a70 commit 56bb71c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

juju/model.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,13 @@ class ModelEntity:
261261

262262
entity_id: str
263263

264-
def __init__(self, entity_id: str, model: Model, history_index=-1, connected=True):
264+
def __init__(
265+
self,
266+
entity_id: str,
267+
model: Model,
268+
history_index: int = -1,
269+
connected: bool = True,
270+
):
265271
"""Initialize a new entity
266272
267273
:param entity_id str: The unique id of the object in the model

0 commit comments

Comments
 (0)