1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

Merge pull request #1200 from SchoolGuy/add-types

mypy: Add types to methods
This commit is contained in:
Daniel Mach 2022-12-07 16:19:25 +01:00 committed by GitHub
commit 074abb400c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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