Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swift_browser_ui/upload/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def __init__(self) -> None:
maxsize=int(os.environ.get("SWIFT_UPLOAD_RUNNER_PROXY_Q_SIZE", 1024))
)

def write(self, payload: bytes = None) -> None:
def write(self, payload: bytes) -> None:
"""Emulate BytesIO write function to be used with tarfile."""
self.q.put(payload)

Expand Down
4 changes: 2 additions & 2 deletions tests/sharing/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class AsyncpgConnectionMock:
"r_read": True,
"r_write": True,
"container": "test-container",
"sharingdate": "15 July 2020",
"sharingdate": mock_date,
"container_owner": "test-owner",
"recipient": "test-recipient",
"address": "test-address",
Expand Down Expand Up @@ -170,7 +170,7 @@ async def __aexit__(self, *args, **kwargs):
"r_read": True,
"r_write": True,
"container": "test-container",
"sharingdate": "15 July 2020",
"sharingdate": mock_date,
"container_owner": "test-owner",
"recipient": "test-recipient",
"address": "test-address",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ deps =
# Mypy fails if 3rd party library doesn't have type hints configured.
# Alternative to ignoring imports would be to write custom stub files, which
# could be done at some point.
commands = mypy --ignore-missing-imports swift_browser_ui/
commands = mypy --ignore-missing-imports --no-namespace-packages swift_browser_ui/

[testenv:docs]
; skip_install = true
Expand Down