Skip to content

Commit d7dfb5e

Browse files
committed
docs
1 parent 0b8d972 commit d7dfb5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

robotpy_build/config/autowrap_yml.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ class FunctionData(Model):
145145
internal: bool = False
146146

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

150152
#: Mechanism to override individual parameters
@@ -212,7 +214,7 @@ def validate_overloads(cls, value):
212214
def validate_virtual_xform(cls, v, values):
213215
if v and values.get("trampoline_cpp_code"):
214216
raise ValueError(
215-
f"cannot specify trampoline_cpp_code and virtual_xform for the same method"
217+
"cannot specify trampoline_cpp_code and virtual_xform for the same method"
216218
)
217219
return v
218220

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

223225

224226
class PropAccess(enum.Enum):
227+
"""Whether a property is writable."""
228+
225229
#: Determine read/read-write automatically:
226230
#:
227231
#: * If a struct/union, default to readwrite

0 commit comments

Comments
 (0)