Merge pull request #23850 from howl-anderson:master
PiperOrigin-RevId: 248757421
This commit is contained in:
commit
406f7ff0dc
@ -56,7 +56,7 @@ def fn_args(fn):
|
||||
fn = fn.__call__
|
||||
args = tf_inspect.getfullargspec(fn).args
|
||||
if _is_bounded_method(fn):
|
||||
args.remove('self')
|
||||
args.pop(0) # remove `self` or `cls`
|
||||
return tuple(args)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user