1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 21:28:42 +02:00

mypy: Add types to methods

This is a bulk add of typing that also includes the
formatting with darker.
This commit is contained in:
Enno Gotthold
2022-12-07 13:01:23 +01:00
parent d17bece45d
commit 7335a84235
2 changed files with 384 additions and 172 deletions

View File

@@ -147,7 +147,7 @@ def http_request_wrap_file(func):
@http_request_wrap_file
def http_request(method, url, headers=None, data=None, file=None):
def http_request(method: str, url: str, headers=None, data=None, file=None):
"""
Send a HTTP request to a server.

File diff suppressed because it is too large Load Diff