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:
commit
074abb400c
@ -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