1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 16:56:15 +01: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
No known key found for this signature in database
GPG Key ID: 18569829AD881702
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