Skip to content

Commit 4d6c1fc

Browse files
update comments for clairity
1 parent cf62b44 commit 4d6c1fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/anyvlm/schemas/vlm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HandoverType(BaseModel):
3636
description="Node-specific label",
3737
)
3838

39-
# override __init__ to prevent the ability to override attributes that are set via environment variables
39+
# custom __init__ to prevent overriding attributes that are set via environment variables
4040
def __init__(self) -> None:
4141
super().__init__()
4242

@@ -53,7 +53,7 @@ class BeaconHandover(BaseModel):
5353
""",
5454
)
5555

56-
# override __init__ to prevent the ability to override attributes that are set via environment variables
56+
# custom __init__ to prevent overriding attributes that are static/set via environment variables
5757
def __init__(self) -> None:
5858
super().__init__()
5959

@@ -92,7 +92,7 @@ class Meta(BaseModel):
9292
)
9393
returnedSchemas: list[ReturnedSchema] = [ReturnedSchema()]
9494

95-
# override __init__ to prevent the ability to override attributes that are set via environment variables
95+
# custom __init__ to prevent overriding attributes that are static or set via environment variables
9696
def __init__(self) -> None:
9797
super().__init__()
9898

@@ -134,6 +134,7 @@ class ResultSet(BaseModel):
134134
description=f"The type of entity relevant to these results. Must always be set to '{RESULT_ENTITY_TYPE}'",
135135
)
136136

137+
# custom __init__ to prevent inadvertently overriding static fields
137138
def __init__(self, resultset_id: str, resultsCount: int) -> None:
138139
super().__init__(id=resultset_id, resultsCount=resultsCount)
139140

0 commit comments

Comments
 (0)