mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
RUF013 compatibility
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ def auth():
|
||||
return None
|
||||
|
||||
|
||||
def post(endpoint: str, payload: dict = None):
|
||||
def post(endpoint: str, payload: dict | None = None):
|
||||
if 'sdapi' not in endpoint:
|
||||
endpoint = f'sdapi/v1/{endpoint}'
|
||||
if 'http' not in endpoint:
|
||||
|
||||
Reference in New Issue
Block a user