Skip to content

Commit 0caa3b3

Browse files
author
Peter Doggart
committed
Black format files.
1 parent dcda4ad commit 0caa3b3

5 files changed

Lines changed: 8 additions & 18 deletions

File tree

flask_restx/fields.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from .marshalling import marshal
2323
from .utils import camel_to_dash, not_none
2424

25-
2625
__all__ = (
2726
"Raw",
2827
"String",
@@ -880,10 +879,10 @@ def output(self, key, obj, ordered=False):
880879
# complexity to O(n)
881880
if ordered:
882881
# Get first element if respecting order
883-
(objkey, val) = self._flat.pop(0)
882+
objkey, val = self._flat.pop(0)
884883
else:
885884
# Previous default retained
886-
(objkey, val) = self._flat.pop()
885+
objkey, val = self._flat.pop()
887886
if (
888887
objkey not in self._cache
889888
and objkey not in self.exclude

flask_restx/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from .utils import not_none
1818
from ._http import HTTPStatus
1919

20-
2120
RE_REQUIRED = re.compile(r"u?\'(?P<name>.*)\' is a required property", re.I | re.U)
2221

2322

flask_restx/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from ._http import HTTPStatus
99

10-
1110
FIRST_CAP_RE = re.compile("(.)([A-Z][a-z]+)")
1211
ALL_CAP_RE = re.compile("([a-z0-9])([A-Z])")
1312

tests/test_postman.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from urllib.parse import parse_qs, urlparse
1111

12-
1312
with open(join(dirname(__file__), "postman-v1.schema.json")) as f:
1413
schema = json.load(f)
1514

tests/test_swagger.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,23 +1451,17 @@ def get(self):
14511451

14521452
description = lambda m: data["paths"]["/description/"][m]["description"] # noqa
14531453

1454-
assert description("get") == dedent(
1455-
"""\
1454+
assert description("get") == dedent("""\
14561455
Parent description.
1457-
Some details"""
1458-
)
1456+
Some details""")
14591457

1460-
assert description("post") == dedent(
1461-
"""\
1458+
assert description("post") == dedent("""\
14621459
Parent description.
1463-
Extra description"""
1464-
)
1460+
Extra description""")
14651461

1466-
assert description("delete") == dedent(
1467-
"""\
1462+
assert description("delete") == dedent("""\
14681463
Parent description.
1469-
A delete operation"""
1470-
)
1464+
A delete operation""")
14711465

14721466
assert description("put") == "Parent description."
14731467
assert "description" not in data["paths"]["/descriptionless/"]["get"]

0 commit comments

Comments
 (0)