Skip to content

Commit e575b35

Browse files
committed
inspect.formatargspec removed in Python 3.11
1 parent e23c119 commit e575b35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cbv/importer/importers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def get_code(member):
193193
code = "".join(lines)
194194

195195
# Get the method arguments
196-
arguments = inspect.formatargspec(*inspect.getfullargspec(member))
196+
arguments = inspect.signature(member).format()
197197

198198
return code, arguments, start_line
199199

0 commit comments

Comments
 (0)