Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Jun 29, 2024
1 parent 13098f7 commit a87188e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/paddle/_typing/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@


def unreached() -> Never:
"""Mark a code path as unreachable.
Refer to https://typing.readthedocs.io/en/latest/source/unreachable.html#marking-code-as-unreachable
"""
raise RuntimeError("Unreachable code path")

0 comments on commit a87188e

Please sign in to comment.