Unused method argument
line length violations
Avoid single-line method definitions
Use fail instead of raise to signal exceptions

Redundant RuntimeError argument can be removed
line length violations
line length violations