@@ -162,7 +162,7 @@ class MyBlock(Block):
162
162
# Name used for the block
163
163
NAME = ' my-block'
164
164
OPTIONS = {
165
- ' tag_name' : [ ' default' , type_html_indentifier]
165
+ ' tag_name' : ( ' default' , type_html_indentifier)
166
166
}
167
167
```
168
168
@@ -340,7 +340,7 @@ you'd want to use.
340
340
341
341
``` py
342
342
class Block :
343
- OPTIONS = {' name' : [ {}, type_any] }
343
+ OPTIONS = {' name' : ( {}, type_any) }
344
344
```
345
345
346
346
### ` type_none `
@@ -355,7 +355,7 @@ indicate the option is "unset". See [`type_multi`](#type_multi) to learn how to
355
355
356
356
``` py
357
357
class Block :
358
- OPTIONS = {' name' : [ none, type_multi(type_none, type_string)] }
358
+ OPTIONS = {' name' : ( none, type_multi(type_none, type_string)) }
359
359
```
360
360
361
361
### ` type_number `
@@ -371,7 +371,7 @@ Returns the valid number (`float` or `int`) or raises a `ValueError`.
371
371
372
372
``` py
373
373
class Block :
374
- OPTIONS = {' keyword' : [ 0.0 , type_number] }
374
+ OPTIONS = {' keyword' : ( 0.0 , type_number) }
375
375
```
376
376
377
377
### ` type_integer `
@@ -387,7 +387,7 @@ Returns the valid `int` or raises a `ValueError`.
387
387
388
388
``` py
389
389
class Block :
390
- OPTIONS = {' keyword' : [ 0 , type_integer] }
390
+ OPTIONS = {' keyword' : ( 0 , type_integer) }
391
391
```
392
392
393
393
### ` type_ranged_number `
@@ -404,7 +404,7 @@ Returns the valid number (`float` or `int`) or raises a `ValueError`.
404
404
405
405
``` py
406
406
class Block :
407
- OPTIONS = {' keyword' : [ 0.0 , type_ranged_number(0.0 , 100.0 )] }
407
+ OPTIONS = {' keyword' : ( 0.0 , type_ranged_number(0.0 , 100.0 )) }
408
408
```
409
409
410
410
### ` type_ranged_integer `
@@ -422,7 +422,7 @@ Returns the valid `int` or raises a `ValueError`.
422
422
423
423
``` py
424
424
class Block :
425
- OPTIONS = {' keyword' : [ 0 , type_ranged_integer(0 , 100 )] }
425
+ OPTIONS = {' keyword' : ( 0 , type_ranged_integer(0 , 100 )) }
426
426
```
427
427
428
428
### ` type_boolean `
@@ -438,7 +438,7 @@ Returns the valid boolean or raises a `ValueError`.
438
438
439
439
``` py
440
440
class Block :
441
- OPTIONS = {' keyword' : [ False , type_boolean] }
441
+ OPTIONS = {' keyword' : ( False , type_boolean) }
442
442
```
443
443
444
444
### ` type_ternary `
@@ -454,7 +454,7 @@ Returns the valid `bool` or `#!py3 None` or raises a `ValueError`.
454
454
455
455
``` py
456
456
class Block :
457
- OPTIONS = {' keyword' : [ None , type_ternary] }
457
+ OPTIONS = {' keyword' : ( None , type_ternary) }
458
458
```
459
459
460
460
### ` type_string `
@@ -470,7 +470,7 @@ Returns the valid `str` or raises a `ValueError`.
470
470
471
471
``` py
472
472
class Block :
473
- OPTIONS = {' keyword' : [ ' default' , type_string] }
473
+ OPTIONS = {' keyword' : ( ' default' , type_string) }
474
474
```
475
475
476
476
### ` type_insensitive_string `
@@ -486,7 +486,7 @@ Returns the valid, lowercase `str` or raises a `ValueError`.
486
486
487
487
``` py
488
488
class Block :
489
- OPTIONS = {' keyword' : [ ' default' , type_insensitive_string] }
489
+ OPTIONS = {' keyword' : ( ' default' , type_insensitive_string) }
490
490
```
491
491
492
492
### ` type_string_in `
@@ -504,7 +504,7 @@ Returns the valid `str` or raises a `ValueError`.
504
504
505
505
``` py
506
506
class Block :
507
- OPTIONS = {' keyword' : [ ' this' , type_string_in([' this' , ' that' ], type_insensitive_string)] }
507
+ OPTIONS = {' keyword' : ( ' this' , type_string_in([' this' , ' that' ], type_insensitive_string)) }
508
508
```
509
509
510
510
### ` type_string_delimiter `
@@ -521,7 +521,7 @@ Returns a list of valid `str` values or raises a `ValueError`.
521
521
522
522
``` py
523
523
class Block :
524
- OPTIONS = {' keyword' : [ ' default' , type_string_delimiter(' ,' type_insensitive_string)] }
524
+ OPTIONS = {' keyword' : ( ' default' , type_string_delimiter(' ,' type_insensitive_string)) }
525
525
```
526
526
527
527
### ` type_html_identifier `
@@ -538,7 +538,7 @@ Returns a `str` that is a valid identifier or raises `ValueError`.
538
538
539
539
``` py
540
540
class Block :
541
- OPTIONS = {' keyword' : [ ' default' , type_html_indentifier] }
541
+ OPTIONS = {' keyword' : ( ' default' , type_html_indentifier) }
542
542
```
543
543
544
544
### ` type_html_classes `
@@ -555,7 +555,7 @@ Returns a list of `str` that are valid CSS classes or raises `ValueError`.
555
555
556
556
``` py
557
557
class Block :
558
- OPTIONS = {' keyword' : [ ' default' , type_html_classes] }
558
+ OPTIONS = {' keyword' : ( ' default' , type_html_classes) }
559
559
```
560
560
561
561
### ` type_html_attribute_dict `
@@ -581,7 +581,7 @@ Returns a `dict[str, Any]` where the values will either be `str` or `list[str]`
581
581
582
582
``` py
583
583
class Block :
584
- OPTIONS = {' attributes' : [ {}, type_html_attribute_dict] }
584
+ OPTIONS = {' attributes' : ( {}, type_html_attribute_dict) }
585
585
```
586
586
587
587
## ` type_multi `
0 commit comments