Skip to content

Commit 8c0df5b

Browse files
authored
Merge pull request #287 from rixx/python-311-inspect
inspect.formatargspec removed in Python 3.11
2 parents 1e48d82 + e575b35 commit 8c0df5b

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
@@ -192,7 +192,7 @@ def get_code(member):
192192
code = textwrap.dedent(code)
193193

194194
# Get the method arguments
195-
arguments = inspect.formatargspec(*inspect.getfullargspec(member))
195+
arguments = inspect.signature(member).format()
196196

197197
return code, arguments, start_line
198198

0 commit comments

Comments
 (0)