Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Dec 30, 2024
1 parent 0b8d972 commit d7dfb5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion robotpy_build/config/autowrap_yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ class FunctionData(Model):
internal: bool = False

#: Use this to set the name of the function as exposed to python
#:
#: When applied to a constructor, creates a static method for the overload instead.
rename: Optional[str] = None

#: Mechanism to override individual parameters
Expand Down Expand Up @@ -212,7 +214,7 @@ def validate_overloads(cls, value):
def validate_virtual_xform(cls, v, values):
if v and values.get("trampoline_cpp_code"):
raise ValueError(
f"cannot specify trampoline_cpp_code and virtual_xform for the same method"
"cannot specify trampoline_cpp_code and virtual_xform for the same method"
)
return v

Expand All @@ -222,6 +224,8 @@ def validate_virtual_xform(cls, v, values):


class PropAccess(enum.Enum):
"""Whether a property is writable."""

#: Determine read/read-write automatically:
#:
#: * If a struct/union, default to readwrite
Expand Down

0 comments on commit d7dfb5e

Please sign in to comment.