ruff: enable RET/PIE/PLW
This commit is contained in:
parent
bd1e5d2f11
commit
9fd4227abf
14 changed files with 80 additions and 75 deletions
|
@ -145,8 +145,7 @@ def _dumps_factory(**kwargs) -> Callable[[Any], str]:
|
|||
res = factory()
|
||||
if res is not None:
|
||||
return res
|
||||
else:
|
||||
raise RuntimeError("Should not happen!")
|
||||
raise RuntimeError("Should not happen!")
|
||||
|
||||
|
||||
def dumps(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue