Skip to content

Commit 3064a1f

Browse files
authored
Merge pull request #838 from opsmill/pog-exception-invalid-argument-type
Fix invalid-argument-type in exception class
2 parents f84bbd2 + 4937d1b commit 3064a1f

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

infrahub_sdk/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def __init__(self, position: list[int | str], message: str) -> None:
136136
super().__init__(self.message)
137137

138138
def __str__(self) -> str:
139-
return f"{'.'.join(map(str, self.position))}: {self.message}"
139+
return f"{'.'.join(str(p) for p in self.position)}: {self.message}"
140140

141141

142142
class AuthenticationError(Error):

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,6 @@ unused-ignore-comment = "ignore" # Clashes with mypy's type ignore comments
131131
# File-specific overrides for remaining type violations
132132
# Fix these incrementally by addressing violations and removing the override
133133

134-
[[tool.ty.overrides]]
135-
include = ["infrahub_sdk/exceptions.py"]
136-
137-
[tool.ty.overrides.rules]
138-
invalid-argument-type = "ignore" # 1 violation at line 139
139134

140135
[[tool.ty.overrides]]
141136
include = ["infrahub_sdk/checks.py"]

0 commit comments

Comments
 (0)