Skip to content

Commit a01a016

Browse files
committed
lint
1 parent 200240c commit a01a016

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dash/development/base_component.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class Component(metaclass=ComponentMeta):
120120
@classmethod
121121
def __get_pydantic_core_schema__(cls, source_type, handler):
122122
from pydantic_core import core_schema
123+
123124
return core_schema.any_schema()
124125

125126
@classmethod
@@ -129,7 +130,9 @@ def __get_pydantic_json_schema__(cls, schema, handler):
129130
"type": "object",
130131
"properties": {
131132
"type": {"type": "string"},
132-
"namespace": {"type": "string", "enum": namespaces} if namespaces else {"type": "string"},
133+
"namespace": {"type": "string", "enum": namespaces}
134+
if namespaces
135+
else {"type": "string"},
133136
"props": {"type": "object"},
134137
},
135138
}

0 commit comments

Comments
 (0)