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:
parent
d17bece45d
commit
7335a84235
@ -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.
|
||||
|
||||
|
554
osc/core.py
554
osc/core.py
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user