Skip to content

Commit

Permalink
Fix flake8-bugbear B037 errors (#1067)
Browse files Browse the repository at this point in the history
B037 Class `__init__` methods must not return or yield and any values.
  • Loading branch information
adamchainz authored Feb 1, 2024
1 parent 1e0b92d commit d8a967b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/django_mysql/models/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ def __init__(
if not hasattr(new_xml, "resolve_expression"):
new_xml = Value(new_xml)

return super().__init__(
xml_target, xpath_expr, new_xml, output_field=TextField()
)
super().__init__(xml_target, xpath_expr, new_xml, output_field=TextField())


class XMLExtractValue(Func):
Expand All @@ -149,7 +147,7 @@ def __init__(
if not hasattr(xpath_expr, "resolve_expression"):
xpath_expr = Value(xpath_expr)

return super().__init__(xml_frag, xpath_expr, output_field=TextField())
super().__init__(xml_frag, xpath_expr, output_field=TextField())


# Information Functions
Expand Down

0 comments on commit d8a967b

Please sign in to comment.