Skip to content

Commit 5fcdb50

Browse files
committed
fix formatting issues
1 parent ea11175 commit 5fcdb50

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

fdk/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
VERSION_HEADER_VALUE = "fdk-python/" + version.VERSION
4848

49+
4950
# todo: python 3.8 is on its way, make more flexible
5051
def is_py37():
5152
py_version = sys.version_info

fdk/response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def __init__(self, ctx: context.InvokeContext,
3838
self.response_data = response_data if response_data else ""
3939
if headers is None:
4040
headers = {}
41-
headers.update({constants.FN_FDK_VERSION: constants.VERSION_HEADER_VALUE})
41+
headers.update({constants.FN_FDK_VERSION:
42+
constants.VERSION_HEADER_VALUE})
4243
ctx.SetResponseHeaders(headers, status_code)
4344
self.ctx = ctx
4445

fdk/tests/test_http_stream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ async def test_override_content_type():
3434
assert headers.get("content-type") == "application/json"
3535
# we've had issues with 'Content-Type: None' slipping in
3636
assert headers.get("Content-Type") is None
37-
assert headers.get(constants.FN_FDK_VERSION) == constants.VERSION_HEADER_VALUE
37+
assert headers.get(
38+
constants.FN_FDK_VERSION) == constants.VERSION_HEADER_VALUE
3839

3940

4041
@pytest.mark.asyncio

0 commit comments

Comments
 (0)