Skip to content

Commit 20875cb

Browse files
committed
Adjust stacklevel
1 parent 566790c commit 20875cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/inspect.py

+1
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,7 @@ def getargs(co):
13691369
'getargs is deprecated since Python3.13, '
13701370
'use Signature.from_code instead',
13711371
DeprecationWarning,
1372+
stacklevel=2,
13721373
)
13731374

13741375
if not iscode(co):

0 commit comments

Comments
 (0)