meta: avoid static assertion
Avoid raising a static assertion, but use `raise AssertionError()` instead. This silences a complaint from pylint about static parameters to `assert`.
This commit is contained in:
parent
dfec7aca9d
commit
14ada360bd
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ class ValidationError:
|
|||
elif isinstance(p, int):
|
||||
result += f"[{p}]"
|
||||
else:
|
||||
assert "new type"
|
||||
raise AssertionError("new type")
|
||||
|
||||
return result
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue