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
36900d2a
Commit
36900d2a
authored
Jun 14, 2024
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: fix handling of parameter type hints
parent
338d7802
Changes
1
Show 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 @
36900d2a
...
...
@@ -41,7 +41,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
:],
return_annotation
=
inspect
.
Signature
.
empty
)
sig
=
sig
.
replace
(
parameters
=
[
v
.
replace
(
annotation
=
inspect
.
Parameter
.
empty
)
for
v
in
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