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 4, 2024
1 parent 67b11f2 commit 8dc3f67
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 8dc3f67

Please sign in to comment.