Skip to content

Commit 3581ec9

Browse files
committed
Fix doc gen error
There appears to be a parsing issue in sphyx? For the lines with `match val: # error: ...` the `: # error:` part is being interpreted as a directive I think? Means the # is stripped from the python code and the docs can't build
1 parent 8ce5b6a commit 3581ec9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/command_line.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,8 @@ of the above sections.
828828
print("other")
829829
830830
# with --disallow-inexhaustive-match-statements
831-
match val: # error: Cases within match statement do not exhaustively handle all values: "Literal[Color.BLUE]". If not intended to handle all cases, use `case _: pass`
831+
# error: Cases within match statement do not exhaustively handle all values: "Literal[Color.BLUE]". If not intended to handle all cases, use `case _: pass`
832+
match val:
832833
case Color.RED:
833834
print("red")
834835

0 commit comments

Comments
 (0)