Skip to content

Commit 2e638e1

Browse files
committed
Fix for typing within SchemaBranch
1 parent 4d2976a commit 2e638e1

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
@@ -1136,7 +1136,7 @@ def process_dropdowns(self) -> None:
11361136
self.set(name=name, schema=node)
11371137

11381138
def process_labels(self) -> None:
1139-
def check_if_need_to_update_label(node) -> bool:
1139+
def check_if_need_to_update_label(node: MainSchemaTypes) -> bool:
11401140
if not node.label:
11411141
return True
11421142
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)