You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The commint 1804923 is using the python function getargspec to check if the the links_factory_imp has kwargs.
Unfortunately, that python function is checking if the given function is a real function, and it raises a TypeError otherwise.
If we use partial instead, it breaks.
Example:
project_links_factory=partial(deposit_links_factory, deposit_type='project')
"""Project factory for links generation."""
Workaround:
defproject_links_factory(pid):
"""Project factory for links generation."""deposit_links_factory(pid, deposit_type='project')
Would it possible to add support for partials?
The text was updated successfully, but these errors were encountered:
The commint 1804923 is using the python function
getargspec
to check if the thelinks_factory_imp
haskwargs
.Unfortunately, that python function is checking if the given function is a real function, and it raises a TypeError otherwise.
If we use
partial
instead, it breaks.Example:
Workaround:
Would it possible to add support for partials?
The text was updated successfully, but these errors were encountered: