Skip to content

Commit

Permalink
also fix generated function spec for erlang
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jun 4, 2024
1 parent 065b98d commit 0dca9f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py_src/func_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,8 @@ def generate_spec_erlang(self, module_func_name: str, is_instance_method: bool,
in_args_spec.append('[{atom(), term()},...] | nil')
if is_instance_method:
self.spec_self = ''
tmp_name = self.classname
if len(self.classname) > 0:
tmp_name = module_name
if len(tmp_name) > 0:
is_param = False
if tmp_name.endswith('_Param'):
tmp_name = tmp_name[:len('_Param')]
Expand Down

0 comments on commit 0dca9f4

Please sign in to comment.