Skip to content

Commit

Permalink
Include cached functions in API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Nov 2, 2024
1 parent 1d535d0 commit f819521
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/apidoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,13 @@ def _is_relevant_type(obj):
in [types.FunctionType, types.BuiltinFunctionType, types.MethodType]
)
| (
# Functions from C-extensions
type(obj).__name__ in ["cython_function_or_method", "fused_cython_function"]
# Functions from C-extensions and wrapped functions
type(obj).__name__
in [
"cython_function_or_method",
"fused_cython_function",
"_lru_cache_wrapper",
]
)
| (
# Enum instance
Expand Down

0 comments on commit f819521

Please sign in to comment.