Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
re6stnet
Commits
4bc6a355
Commit
4bc6a355
authored
May 21, 2024
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove function return annotation from signature string
parent
e2b4e738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
re6st/registry.py
re6st/registry.py
+1
-1
No files found.
re6st/registry.py
View file @
4bc6a355
...
...
@@ -38,7 +38,7 @@ def rpc(f):
argspec
=
inspect
.
getfullargspec
(
f
)
assert
not
(
argspec
.
varargs
or
argspec
.
varkw
),
f
sig
=
inspect
.
signature
(
f
)
sig
=
sig
.
replace
(
parameters
=
[
*
sig
.
parameters
.
values
()][
1
:])
sig
=
sig
.
replace
(
parameters
=
[
*
sig
.
parameters
.
values
()][
1
:]
,
return_annotation
=
inspect
.
Signature
.
empty
)
f
.
getcallargs
=
eval
(
"lambda %s: locals()"
%
str
(
sig
)[
1
:
-
1
])
return
f
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment