Skip to content

Commit 80c146b

Browse files
authored
Merge pull request #6486 from opsmill/pog-schema-branch-typing-20250516
Fix for typing within SchemaBranch
2 parents b7bac04 + 2e638e1 commit 80c146b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

backend/infrahub/core/schema/schema_branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ def process_dropdowns(self) -> None:
11371137
self.set(name=name, schema=node)
11381138

11391139
def process_labels(self) -> None:
1140-
def check_if_need_to_update_label(node) -> bool:
1140+
def check_if_need_to_update_label(node: MainSchemaTypes) -> bool:
11411141
if not node.label:
11421142
return True
11431143
for item in node.relationships + node.attributes:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ disable_error_code = [
328328
"assignment",
329329
"attr-defined",
330330
"index",
331-
"no-untyped-def",
332331
"operator",
333332
"return-value",
334333
"union-attr",

0 commit comments

Comments
 (0)