sphinx-autodoc2 icon indicating copy to clipboard operation
sphinx-autodoc2 copied to clipboard

Add support for overloaded functions

Open ketozhang opened this issue 2 years ago • 0 comments

Currently I can't seem to get sphinx-autodoc2 to generate the signature for overloaded functions.

Example

from typing import overload

@overload()
def myfunc(a: int):
  """foobar with int"""
...

@overload()
def myfunc(a: str):
  """foobar with str"""
...

def myfunc(a):
  """foobar"""
  # Implementation

ketozhang avatar Oct 03 '23 19:10 ketozhang