Skip to content

Commit

Permalink
fixex cyclomatic dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jnastarot authored and pthom committed Dec 2, 2024
1 parent c25f9f9 commit d7a00d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/litgen/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

from litgen.internal.template_options import TemplateFunctionsOptions, TemplateClassOptions
from litgen.internal.class_iterable_info import ClassIterablesInfos
from litgen.internal.adapted_types import AdaptedFunction


class BindLibraryType(Enum):
pybind11 = 1
Expand Down Expand Up @@ -213,7 +211,8 @@ class LitgenOptions:
fn_return_force_policy_reference_for_references__regex: str = ""
#
# The callback provides a flexible way to enforce the reference return policy for functions
fn_return_force_policy_reference__callback: Callable[[AdaptedFunction], None] | None = None
# callback takes litgen.internal.adapted_types.AdaptedFunction as the parameter
fn_return_force_policy_reference__callback: Callable[[Any], None] | None = None

# ------------------------------------------------------------------------------
# Force overload
Expand Down

0 comments on commit d7a00d4

Please sign in to comment.