Commit 5ef8525
follow up patch to fn :decorators support, minor doc and test update (#1193)
Hi,
can you please consider the follow up patch for anonymous fn decorators
support (#1189).
- Moved the note in python interop decorators doc at the top, as it
contains important policy information.
- Updated the `fn` docstring to document the form/name metadata
precedence rules established in #1189, where `name` metadata takes
precedence over `form`.
- Added new test to verify precedence rule.
- Corrected a test that was mistakenly using `defn` instead of `fn`.
I don't think this requires a changelog entry but I can add if
necessary.
Thanks
---------
Co-authored-by: ikappaki <[email protected]>
Co-authored-by: Chris Rink <[email protected]>1 parent 5525a69 commit 5ef8525
File tree
3 files changed
+26
-13
lines changed- docs
- src/basilisp
- tests/basilisp
3 files changed
+26
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
270 | 276 | | |
271 | 277 | | |
272 | 278 | | |
| |||
299 | 305 | | |
300 | 306 | | |
301 | 307 | | |
302 | | - | |
| 308 | + | |
303 | 309 | | |
304 | 310 | | |
305 | 311 | | |
| |||
325 | 331 | | |
326 | 332 | | |
327 | 333 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6004 | 6004 | | |
6005 | 6005 | | |
6006 | 6006 | | |
| 6007 | + | |
| 6008 | + | |
| 6009 | + | |
| 6010 | + | |
| 6011 | + | |
| 6012 | + | |
6007 | 6013 | | |
6008 | 6014 | | |
6009 | 6015 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | | - | |
22 | | - | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | | - | |
| 31 | + | |
26 | 32 | | |
27 | | - | |
28 | | - | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments