-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional namespace arguments for
make_class
(#1203)
* feat(make_class): add optional namespace arguments to pass through to `make_class` Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * chore: add changelog Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * Rename `namespaces` to `class_body` Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * Fix versionchanged for correct features Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * Correctly name test case Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * Update changelog Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * Adjust changelog --------- Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> Co-authored-by: Hynek Schlawack <hs@ox.cx>
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Added *class_body* argument to `attrs.make_class()` to provide additional attributes for newly created classes. | ||
It is, for example, now possible to attach methods. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters