Skip to content

Commit 4192a5c

Browse files
committed
Remove superfluous f-string-markers
1 parent 7bd4617 commit 4192a5c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/graphql/type/definition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def __init__(
593593
ast_node: InputValueDefinitionNode = None,
594594
) -> None:
595595
if not is_input_type(type_):
596-
raise TypeError(f"Argument type must be a GraphQL input type.")
596+
raise TypeError("Argument type must be a GraphQL input type.")
597597
if description is not None and not is_description(description):
598598
raise TypeError("Argument description must be a string.")
599599
if out_name is not None and not isinstance(out_name, str):
@@ -1324,7 +1324,7 @@ def __init__(
13241324
ast_node: InputValueDefinitionNode = None,
13251325
) -> None:
13261326
if not is_input_type(type_):
1327-
raise TypeError(f"Input field type must be a GraphQL input type.")
1327+
raise TypeError("Input field type must be a GraphQL input type.")
13281328
if description is not None and not is_description(description):
13291329
raise TypeError("Input field description must be a string.")
13301330
if out_name is not None and not isinstance(out_name, str):

tests/type/test_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def rejects_a_schema_which_redefines_a_built_in_type():
268268
msg = str(exc_info.value)
269269
assert msg == (
270270
"Schema must contain uniquely named types"
271-
f" but contains multiple types named 'String'."
271+
" but contains multiple types named 'String'."
272272
)
273273

274274
def rejects_a_schema_which_defines_an_object_twice():
@@ -282,7 +282,7 @@ def rejects_a_schema_which_defines_an_object_twice():
282282
msg = str(exc_info.value)
283283
assert msg == (
284284
"Schema must contain uniquely named types"
285-
f" but contains multiple types named 'SameName'."
285+
" but contains multiple types named 'SameName'."
286286
)
287287

288288
def rejects_a_schema_which_defines_fields_with_conflicting_types():
@@ -300,7 +300,7 @@ def rejects_a_schema_which_defines_fields_with_conflicting_types():
300300
msg = str(exc_info.value)
301301
assert msg == (
302302
"Schema must contain uniquely named types"
303-
f" but contains multiple types named 'SameName'."
303+
" but contains multiple types named 'SameName'."
304304
)
305305

306306
def describe_when_assumed_valid():

0 commit comments

Comments
 (0)