Skip to content

Commit 125bc91

Browse files
Update binders.md
1 parent 3961ff9 commit 125bc91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blacksheep/docs/binders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ When mapping the request's payload to an instance of the desired type, the type
113113
is instantiated using `cls(**data)`. If it necessary to parse dates or other
114114
complex types that are not handled by JSON deserialization, this must be done
115115
in the constructor of the class. To handle gracefully a JSON payload having
116-
extra unused properties, use `*args` in your class constructor: `__init__(one,
117-
two, three, *args)`.
116+
extra unused properties, use `**kwargs` in your class constructor: `__init__(one,
117+
two, three, **kwargs)`.
118118

119119
## Optional parameters
120120

0 commit comments

Comments
 (0)