Skip to content
Snippets Groups Projects
Verified Commit e82d3e03 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Comply with RET501

parent 5352ebb2
No related branches found
No related tags found
No related merge requests found
......@@ -304,4 +304,4 @@ class NullField(serializers.CharField):
def to_internal_value(self, data):
if data is not None:
self.fail("invalid")
return None
return
......@@ -5,5 +5,8 @@ line-length = 120
quote-style = "double"
[lint]
select = ["Q0", "F", "W", "E"]
select = ["Q0", "F", "W", "E",
# flake8-return: unnecessary-return-none
"RET501",
]
ignore = ["E501"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment