Skip to content

Commit

Permalink
Fix default option display (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevisal authored Nov 29, 2023
1 parent 99c79c9 commit d6830e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vai_lab/utils/plugins/pluginCanvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import numpy as np
import pandas as pd
from inspect import getmembers, isfunction, ismethod, signature, _empty
from inspect import getmembers, isfunction, ismethod, signature
from functools import reduce

from typing import Dict, List
Expand Down Expand Up @@ -639,9 +639,9 @@ def getArgs(self, f):
:returns out: two dictionaries with arguments and default value (if optional)
"""

meth_req = {name: param.default for name, param in signature(f).parameters.items() if param.default is _empty}
meth_req = {name: '' for name, param in signature(f).parameters.items() if param.default is param.empty}
meth_req.pop('self', None)
meth_r_opt = {name: param.default for name, param in signature(f).parameters.items() if param.default is not _empty}
meth_r_opt = {name: param.default for name, param in signature(f).parameters.items() if param.default is not param.empty}
return meth_req, meth_r_opt

def addMeth(self):
Expand Down

0 comments on commit d6830e5

Please sign in to comment.