Skip to content

Commit 50b47f3

Browse files
authored
Merge pull request #5894 from opsmill/dga-20250228-update-main-packages
Update main Python packages
2 parents 2e95050 + b6df2f5 commit 50b47f3

File tree

6 files changed

+288
-264
lines changed

6 files changed

+288
-264
lines changed

backend/infrahub/computed_attribute/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
class ComputedAttributeAutomations(BaseModel):
20-
data: dict[str, dict[str, Automation]] = Field(default_factory=lambda: defaultdict(dict))
20+
data: dict[str, dict[str, Automation]] = Field(default_factory=lambda: defaultdict(dict)) # type: ignore[arg-type]
2121

2222
@classmethod
2323
def from_prefect(cls, automations: list[Automation], prefix: str = "") -> Self:

backend/infrahub/core/diff/query/filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def is_empty(self) -> bool:
1616

1717

1818
class IncExclActionFilterOptions(BaseModel):
19-
includes: set[DiffAction] = Field(default_factory=list)
20-
excludes: set[DiffAction] = Field(default_factory=list)
19+
includes: set[DiffAction] = Field(default_factory=set)
20+
excludes: set[DiffAction] = Field(default_factory=set)
2121

2222
@property
2323
def is_empty(self) -> bool:

backend/infrahub/message_bus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class InfrahubResponse(InfrahubMessage):
8787

8888
passed: bool = True
8989
routing_key: str
90-
data: dict | InfrahubResponseData = Field(default_factory=dict)
90+
data: dict | InfrahubResponseData = Field(default_factory=dict) # type: ignore[arg-type]
9191
errors: list[str] = Field(default_factory=list)
9292
initial_message: dict | None = Field(
9393
default=None,

backend/infrahub/task_manager/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RelatedNodeInfo(BaseModel):
3131

3232

3333
class RelatedNodesInfo(BaseModel):
34-
flows: dict[UUID, dict[str, RelatedNodeInfo]] = Field(default_factory=lambda: defaultdict(dict))
34+
flows: dict[UUID, dict[str, RelatedNodeInfo]] = Field(default_factory=lambda: defaultdict(dict)) # type: ignore[arg-type]
3535
nodes: dict[str, RelatedNodeInfo] = Field(default_factory=dict)
3636

3737
def add_nodes(self, flow_id: UUID, node_ids: list[str]) -> None:
@@ -64,7 +64,7 @@ def get_unique_related_node_ids(self) -> list[str]:
6464

6565

6666
class FlowLogs(BaseModel):
67-
logs: defaultdict[UUID, list[PrefectLog]] = Field(default_factory=lambda: defaultdict(list))
67+
logs: defaultdict[UUID, list[PrefectLog]] = Field(default_factory=lambda: defaultdict(list)) # type: ignore[arg-type]
6868

6969
def to_graphql(self, flow_id: UUID) -> list[dict]:
7070
return [

0 commit comments

Comments
 (0)