Skip to content

Commit 1cea41d

Browse files
authored
Merge pull request #1156 from jbampton/remove-parens
🧹 Remove unneeded parenthesis
2 parents 3ec55b5 + fcd667e commit 1cea41d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dash/_callback_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def has_context(func):
99
def assert_context(*args, **kwargs):
1010
if not flask.has_request_context():
1111
raise exceptions.MissingCallbackContextException(
12-
("dash.callback_context.{} is only available from a callback!").format(
12+
"dash.callback_context.{} is only available from a callback!".format(
1313
getattr(func, "__name__")
1414
)
1515
)

dash/development/_py_components_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def shape_or_exact():
516516
)
517517
),
518518
# React's PropTypes.objectOf
519-
objectOf=lambda: ("dict with strings as keys and values of type {}").format(
519+
objectOf=lambda: "dict with strings as keys and values of type {}".format(
520520
js_to_py_type(type_object["value"])
521521
),
522522
# React's PropTypes.shape

dash/development/_r_components_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ def shape_or_exact():
849849
)
850850
),
851851
# React's PropTypes.objectOf
852-
objectOf=lambda: ("list with named elements and values of type {}").format(
852+
objectOf=lambda: "list with named elements and values of type {}".format(
853853
get_r_type(type_object["value"])
854854
),
855855
# React's PropTypes.shape

0 commit comments

Comments
 (0)