mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-15 00:36:11 +01:00
18 lines
389 B
Python
18 lines
389 B
Python
from .connection import Connection
|
|
from .connection import GiteaHTTPResponse
|
|
|
|
|
|
class User:
|
|
@classmethod
|
|
def get(
|
|
cls,
|
|
conn: Connection,
|
|
) -> GiteaHTTPResponse:
|
|
"""
|
|
Retrieve details about the current user.
|
|
|
|
:param conn: Gitea ``Connection`` instance.
|
|
"""
|
|
url = conn.makeurl("user")
|
|
return conn.request("GET", url)
|