Skip to content

Commit a0030bb

Browse files
authored
Merge pull request #2 from alstn2468/required-children-prop
Required children prop
2 parents e139906 + 1c92af4 commit a0030bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dash/development/_py_components_generation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections import OrderedDict
22
import copy
33
import os
4-
from textwrap import fill, dedent
4+
from textwrap import fill
55

66
from dash.development.base_component import _explicitize_args
77
from dash.exceptions import NonExistentEventException
@@ -86,7 +86,7 @@ def __init__(self, {default_argtext}):
8686
).replace("\r\n", "\n")
8787
required_args = required_props(filtered_props)
8888
is_children_required = 'children' in required_args
89-
required_args = list(filter(lambda arg: arg != 'children', required_args))
89+
required_args = [arg for arg in required_args if arg != "children"]
9090

9191
prohibit_events(props)
9292

0 commit comments

Comments
 (0)