Skip to content

Commit fb56526

Browse files
committed
fix: Allow schema.attrs to be {}
1 parent 6fe57f4 commit fb56526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sphinxnotes/render/ext/derive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{
2525
'schema': {
2626
Optional('name', default='str'): Or(str, type(None)),
27-
Optional('attrs', default={}): {str: str},
27+
Optional('attrs', default={}): Or({str: str}, {}),
2828
Optional('content', default='str'): Or(str, type(None)),
2929
},
3030
'template': {

0 commit comments

Comments
 (0)