From a87188efd263cb0e24f745b38963f8c213530d9a Mon Sep 17 00:00:00 2001 From: SigureMo Date: Sat, 29 Jun 2024 17:13:17 +0800 Subject: [PATCH] add comment --- python/paddle/_typing/basic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/paddle/_typing/basic.py b/python/paddle/_typing/basic.py index 1f2e14ea43a82..3e96228c76207 100644 --- a/python/paddle/_typing/basic.py +++ b/python/paddle/_typing/basic.py @@ -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")