Skip to content

Commit 141765d

Browse files
JelleZijlstradavidism
authored andcommitted
remove (for now) unused ignores
1 parent d160f84 commit 141765d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/werkzeug/routing/rules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -826,13 +826,13 @@ def _join(parts: list[ast.expr]) -> ast.expr:
826826
# bad line numbers cause an assert to fail in debug builds
827827
for node in ast.walk(module):
828828
if "lineno" in node._attributes:
829-
node.lineno = 1 # type: ignore[attr-defined]
829+
node.lineno = 1
830830
if "end_lineno" in node._attributes:
831-
node.end_lineno = node.lineno # type: ignore[attr-defined]
831+
node.end_lineno = node.lineno
832832
if "col_offset" in node._attributes:
833-
node.col_offset = 0 # type: ignore[attr-defined]
833+
node.col_offset = 0
834834
if "end_col_offset" in node._attributes:
835-
node.end_col_offset = node.col_offset # type: ignore[attr-defined]
835+
node.end_col_offset = node.col_offset
836836

837837
code = compile(module, "<werkzeug routing>", "exec")
838838
return self._get_func_code(code, func_ast.name)

0 commit comments

Comments
 (0)